#ifndef __grid_h #define __grid_h typedef struct _grid { int nrows, ncols; int nodata; int cellsize; int** data; } Grid; //getters int nrows(Grid*); int ncols(Grid*); /* thid function reads the grid from file and populates all values in g including data; assumes g is allocated prior to this call*/ void readGridFromFile(char* fname, Grid* g); //print the grid void printGrid(Grid g); #endif