global.h 582 B

12345678910111213141516171819202122232425262728
  1. #include <grass/gis.h>
  2. #include <grass/raster.h>
  3. #define cv(i,j) cell[i][j]
  4. #define av(i,j) a[i][j]
  5. #define atbv(i,j) atb[i][j]
  6. #define is_cv_null(i,j) Rast_is_d_null_value(&cv(i,j))
  7. #define is_atbv_null(i,j) Rast_is_d_null_value(&atbv(i,j))
  8. #define ZERO 0.0000001
  9. #ifdef _MAIN_C_
  10. #define GLOBAL
  11. #else
  12. #define GLOBAL extern
  13. #endif
  14. GLOBAL char *input, *output;
  15. GLOBAL struct Cell_head window;
  16. GLOBAL DCELL **cell;
  17. GLOBAL DCELL **atb, **a;
  18. void read_cells(void);
  19. void write_cells(void);
  20. void calculate_statistics(void);
  21. void initialize(void);
  22. void calculate_atanb(void);