ransurf.h 710 B

123456789101112131415161718192021222324252627282930313233
  1. /* ransurf.h */
  2. #include <stdio.h>
  3. #include <math.h>
  4. #include <grass/raster.h>
  5. #include "flag.h"
  6. #define ODD(a) ((a) & 1)
  7. #define SEED_MAX 54772
  8. #define SEED_MIN 0
  9. #define PI M_PI
  10. #define CELLSORTER struct cell_sorter_
  11. CELLSORTER {
  12. int R, C;
  13. double Value;
  14. };
  15. extern double NS, EW;
  16. extern int CellCount, Rs, Cs;
  17. extern double MaxDist, MaxDistSq;
  18. extern FLAG *Cells;
  19. extern CELLSORTER *DoNext;
  20. extern CELL **Out, *CellBuffer;
  21. extern int Seed, OutFD;
  22. extern int MaxCellsNum;
  23. extern struct Flag *Verbose;
  24. extern struct Option *Distance;
  25. extern struct Option *Output;
  26. extern struct Option *SeedStuff;
  27. extern struct Option *MaxCells;