20 #include <grass/gis.h>
21 #include <grass/site.h>
22 #include <grass/bitmap.h>
23 #include <grass/linkm.h>
24 #include <grass/interpf.h>
25 #include <grass/glocale.h>
31 int i, j, cfmask = 0, irev, MASKfd;
33 CELL *cellmask, *MASK;
56 for (i = 0; i < params->
nsizr; i++) {
57 irev = params->
nsizr - i - 1;
62 for (j = 0; j < params->
nsizc; j++) {
63 if ((cellmask && cellmask[j] == 0) || (MASK && MASK[j] == 0))
64 BM_set(bitmask, j, irev, 0);
66 BM_set(bitmask, j, irev, 1);
79 double numbery,
double numberz,
int n_leafs)
93 for (ii = 0; ii < n_leafs; ii++)
int G_open_cell_old(const char *name, const char *mapset)
Open an existing integer raster map (cell)
int G_get_map_row(int fd, CELL *buf, int row)
Get raster row (this routine is deprecated!)
CELL * G_allocate_cell_buf(void)
Allocate memory for a CELL type raster map.
char * G_find_cell2(const char *name, const char *mapset)
find a raster map (look but don't touch)
void G_message(const char *msg,...)
Print a message to stderr.
int G_maskfd(void)
Test for MASK.
struct BM * BM_create(int x, int y)
Create bitmap of dimension x/y and return structure token.
int BM_set(struct BM *map, int x, int y, int val)
Sets bitmap value to 'val' at location 'x' 'y'.
int G_fatal_error(const char *msg,...)
Print a fatal error message to stderr.