Markus Neteler f49ace06b1 homogenize keywords 13 years ago
..
Makefile d6700ffb2c Update LIBES, DEPENDENCIES from linkage database 16 years ago
README db49180dd7 welcome to GRASS 7.0.svn 17 years ago
count.c df4d81abd4 Move raster-specific functions from lib/gis to lib/raster: 15 years ago
creat_rand.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 years ago
local_proto.h c66ce150bb rasterlib: prototypes moved to rasterdefs.h 16 years ago
main.c f49ace06b1 homogenize keywords 13 years ago
r.random.html e437cd9f59 avoid caps HTML tags 13 years ago
random.c b48a16f17c gislib: define G_OPT_DB_KEYCOLUMN and GV_KEY_COLUMN 14 years ago
support.c 1edef18d8e add Rast_command_history(); 14 years ago

README

/*********************************************************************
* GRASS program to create a raster map with non-zero data
* in random locations.
* Locations will be within non-zero data in the input layer.
* (unless -z option specified)
* If it necessary to restrict the locations to only some categories
* of the input map, a reclass map should be constructed first
* and used as input to this program.
*
* Number of random cells can be a fixed number or a percentage of cells.
*
* Resulting raster map consists of original cell values at the selected
* random locations and zero elsewhere.
*
* A sitefile may optionally be created.
*
* Usage:
* r.random [-iqz] input=name [raster_output=name] [sites_output=name] n=n[%]
*
* -i mean report number of total cells and null cells
* -q means run quietly
* -z means generate random locations for zero-data as well
*
*********************************************************************/