ransurf.h 1.5 KB

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