Markus Neteler 665be72774 r.random*/r.surf.* manuals: examples and screenshots added (#1542) 4 年 前
..
testsuite fd86f50e9a Apply Black to tests (#1387) 4 年 前
Makefile d6700ffb2c Update LIBES, DEPENDENCIES from linkage database 15 年 前
README db49180dd7 welcome to GRASS 7.0.svn 17 年 前
count.c 71690b87d1 r.random: use long long when available 8 年 前
local_proto.h e37da6a734 Fix #ifndef/#define mismatch of header guard (#1276) 4 年 前
main.c f36a0d89f0 r.random: add seed option to set the seed of the RNG (fixes https://trac.osgeo.org/grass/ticket/3594) 7 年 前
r.random.html 665be72774 r.random*/r.surf.* manuals: examples and screenshots added (#1542) 4 年 前
random.c f36a0d89f0 r.random: add seed option to set the seed of the RNG (fixes https://trac.osgeo.org/grass/ticket/3594) 7 年 前
support.c 71690b87d1 r.random: use long long when available 8 年 前

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
*
*********************************************************************/