Ecological Landscape Modeling: Models Pages

gridmap.h

Go to the documentation of this file.
00001 
00012 #ifndef GRIDMAP_H
00013 #define GRIDMAP_H
00014 
00015 #include "grid_io.h"
00016 #include "globals.h"
00017 
00018         
00019 int OGrow_tot; 
00020 int OGcol_tot; 
00021 int OGidCnt;   
00023 int gridio_batch_len;   
00036 struct eOGMap {                           
00037   int OGID;         
00038   int* elmID;       
00040   int eidCnt;       
00041   int index;        
00057   int OGROW;          
00058   int OGCOL;          
00059 } *elm_OG_map;        
00060 struct eOGMap *elm_wmm_map ;  /* all grid_io data inputs are using the same eOGMap.
00061                                                                 If in future they need their own copy, can make it like applicationStruct! */
00062 
00064 typedef struct {
00065 
00066   FILE* binfile_ptr;                
00067   float *dataELM;                   
00068   float **dataAnyGrid;              
00069   char tag[GRID_TAG_LENGTH];        
00070   float *values;                    
00071   GRID grid;                        
00072   int dayCntr;                          
00073   int recCntr;                          
00074   int day;         
00078   int step;        
00082   int recRead;     
00085   int skip;        
00090 } applicationStruct ;
00091 
00092 
00093 void formatDate(char*);
00094 int mapGrids(char*);
00095 int initDataStruct(char*,applicationStruct*);
00096 int processData(char*,applicationStruct*);
00097 void returnData(float*,applicationStruct*);
00098 void mapELM2Grid_io(applicationStruct*);
00099 void printGridMap();
00100 /*void printBatchData(float **value,int days, int size); */ /* TODO: remove this function when sure is no longer needed */
00101 
00102 /* externs */
00103 /* from generic_driver.h */
00104 extern char initDateRead[15]; /* date of initialization of model */
00105 extern int PORnumday;
00106 
00107 #endif  /* GRIDMAP_H */

Generated on Sat Jan 7 14:04:15 2012 for ELM source code by  doxygen 1.5.6