ransurf.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /* ransurf.h */
  2. #ifndef __RANSURF_H__
  3. #define __RANSURF_H__
  4. #include <stdio.h>
  5. #include <math.h>
  6. #include <grass/raster.h>
  7. #define ODD(a) ((a) & 1)
  8. #define SEED_MAX 54772
  9. #define SEED_MIN 0
  10. #define MAX_INTERVAL 10
  11. #define MIN_INTERVAL -10
  12. /* DELTA_T is the inverse of the number of subdivisions within the */
  13. /* Norm[] distribution for each standard deviation. */
  14. /* DELTA_T == 1 / 1000 */
  15. #define DELTA_T 0.001
  16. /* S_O_D == (2 * MAX_INTERVAL) / DELTA_T */
  17. #define SIZE_OF_DISTRIBUTION 20000
  18. #define PI M_PI
  19. #define BIGF struct _big_f_filter_
  20. BIGF {
  21. int RowPlus, ColPlus, NumR, NumC, *LowBF, *HihBF;
  22. double **F;
  23. };
  24. #define FILTER struct _filter_strteres_
  25. FILTER {
  26. double Mult, MaxDist, MaxSq, Exp;
  27. };
  28. #define CATINFO struct _cat_info_strtere_
  29. CATINFO {
  30. int NumCat, *NumValue;
  31. double *Average, *Max, *Min;
  32. };
  33. extern BIGF BigF;
  34. extern double **Surface, NS, EW, FilterSD, AllMaxDist, *Norm;
  35. extern int MapCount, FDM, Rs, Cs, Theory;
  36. extern CELL *CellBuffer;
  37. extern FILTER *AllFilters, Filter;
  38. extern CATINFO CatInfo;
  39. extern int *Seeds, Seed, NumSeeds, Low, High, NumMaps, NumFilters, OutFD;
  40. extern char Buf[240], **OutNames, *TheoryName, *Mapset;
  41. extern struct Flag *Uniform;
  42. /* please, remove before GRASS 7 released */
  43. extern struct Flag *Verbose;
  44. extern struct Option *Distance, *Exponent, *Weight;
  45. extern struct Option *Output;
  46. extern struct Option *range_high_stuff;
  47. extern struct Option *SeedStuff;
  48. #endif