frac.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /************************************************************************/
  2. /*** frac.h ***/
  3. /*** Header file for use with r.frac ***/
  4. /*** Jo Wood, V 1.0 - 19th October, 1994 ***/
  5. /************************************************************************/
  6. #include <stdio.h>
  7. #include <stdlib.h>
  8. #include <string.h>
  9. #include <grass/gis.h>
  10. /* programs. It sets up the necessary */
  11. /* prototypes for GRASS library calls. */
  12. #define MAX(a,b) ((a)>(b) ? (a):(b))
  13. #define SWAP(a,b) tempr=(a); (a)=(b); (b) = tempr
  14. #define TWOPI 6.283185307179590 /* Constant value of 2 pi */
  15. /* ------ Global variables ------ */
  16. extern const char
  17. *rast_out_name, /* Name of the raster output file. */
  18. *mapset_out;
  19. extern int
  20. fd_out, /* File descriptor of output raster */
  21. Steps; /* Number of intermediate images. */
  22. extern double H; /* Hausdorff-Besickovitch dimension. */
  23. /* interface.c */
  24. int interface(int, char *[]);
  25. /* process.c */
  26. int process(void);
  27. int data_reset(double *[2], int);
  28. /* spec_syn.c */
  29. int specsyn(double *[2], int);
  30. /* write_rast.c */
  31. int write_rast(double *[2], int, int);