README 1002 B

12345678910111213141516171819202122232425
  1. /*********************************************************************
  2. * GRASS program to create a raster map with non-zero data
  3. * in random locations.
  4. * Locations will be within non-zero data in the input layer.
  5. * (unless -z option specified)
  6. * If it necessary to restrict the locations to only some categories
  7. * of the input map, a reclass map should be constructed first
  8. * and used as input to this program.
  9. *
  10. * Number of random cells can be a fixed number or a percentage of cells.
  11. *
  12. * Resulting raster map consists of original cell values at the selected
  13. * random locations and zero elsewhere.
  14. *
  15. * A sitefile may optionally be created.
  16. *
  17. * Usage:
  18. * r.random [-iqz] input=name [raster_output=name] [sites_output=name] n=n[%]
  19. *
  20. * -i mean report number of total cells and null cells
  21. * -q means run quietly
  22. * -z means generate random locations for zero-data as well
  23. *
  24. *********************************************************************/