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