2
************************************************************
3
* MODULE: r.le.setup/setup.h *
4
* Version 5.0beta Oct. 1, 2001 *
6
* AUTHOR: W.L. Baker, University of Wyoming *
9
* PURPOSE: To set up sampling areas, which can can then *
10
* be used to obtain data using the r.le.dist, *
11
* r.le.patch, and r.le.pixel programs. The *
12
* setup.h code contains structure definitions *
13
* and lists of modules in r.le.setup *
15
* COPYRIGHT: (C) 2001 by W.L. Baker *
17
* This program is free software under the GNU General *
18
* Public License(>=v2). Read the file COPYING that comes *
19
* with GRASS for details *
21
************************************************************/
30
#include <grass/gis.h>
31
#include "sys/types.h"
34
/* #include "dig_defines.h" */
35
/* #include "dig_structs.h" */
36
/* #include "dig_head.h" */
41
#define EQ(a, b) (a-b < 0.01 && a-b > -0.01 )
42
#define BIG 1000000000.0
47
extern void sample(int t0, int b0, int l0, int r0, char *name, char *name1,
48
char *name2, double *msc);
49
extern void draw_box(int x0, int y0, int xp, int yp, int thick);
50
extern void draw_circle(int x0, int y0, int xp, int yp, int thick);
51
extern void numtrap(int n, double *a);
54
extern void mov_wind(int t, int b, int l, int r, char *n1, char *n2, char *n3,
58
extern int ask_group(char **sel);
59
extern int get_group_drv(char **sel);
60
extern FILE *fopen0(char *name, char *flag);
64
extern void set_map(char *name, char *name1, char *name2,
65
struct Cell_head window, int top, int bot, int left,
67
extern void paint_map(char *n1, char *n2, char *n3);