/* grid.h */ /* Riccardo Schmid 2-10-04 */ #ifndef __grid_h #define __grid_h #include typedef struct { int ncols; /* number of columns in the grid */ int nrows; /* number of rows in the grid */ float xllcorner; /* leftmost side of grid */ float yllcorner; /* downmost side of grid */ float cellsize; /* size of the cells */ int nodataval; /* value representing no data */ int minval; /* minimum value in the grid */ int maxval; /* maximum value in the grid */ int **tbl; /* the table of integers */ } Grid; int gopen(Grid *, char *); void gkill(Grid *); void gprint(Grid *); void gmultf(Grid *, float); void gmult(Grid *, int); int gsave(Grid *, char *); #endif