global.h 870 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #include <grass/gis.h>
  2. #include <grass/raster.h>
  3. #define SORT_DEFAULT 0
  4. #define SORT_ASC 1
  5. #define SORT_DESC 2
  6. extern char *no_data_str;
  7. extern int nfiles;
  8. extern int nrows;
  9. extern int ncols, no_nulls, no_nulls_all;
  10. extern int nsteps, cat_ranges, raw_output, as_int, averaged;
  11. extern int *is_fp;
  12. extern DCELL *DMAX, *DMIN;
  13. extern CELL NULL_CELL;
  14. extern char *fs;
  15. extern struct Categories *labels;
  16. /* cell_stats.c */
  17. int cell_stats(int[], int, int, int, int, int, char *);
  18. /* raw_stats.c */
  19. int raw_stats(int[], int, int, int);
  20. /* stats.c */
  21. int initialize_cell_stats(int);
  22. int allocate_values(void);
  23. struct Node *NewNode(double);
  24. void fix_max_fp_val(CELL *, int);
  25. void reset_null_vals(CELL *, int);
  26. int update_cell_stats(CELL **, int, double);
  27. int sort_cell_stats(int);
  28. int print_node_count(void);
  29. int print_cell_stats(char *, int, int, int, int, char *);