README 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /****************************************************************************
  2. *
  3. * MODULE: r.random.cells
  4. * AUTHOR(S): Charles Ehlschlaeger; National Center for Geographic
  5. * Information and Analysis, University of California, Santa
  6. * Barbara (original contributor)
  7. * Markus Neteler <neteler itc.it>
  8. * Roberto Flor <flor itc.it>,
  9. * Brad Douglas <rez touchofmadness.com>,
  10. * Glynn Clements <glynn gclements.plus.com>Markus Neteler <neteler itc.it> (original contributor)
  11. * Bernhard Reiter <bernhard intevation.de>
  12. * PURPOSE: generates a random sets of cells that are at least
  13. * some distance apart
  14. * COPYRIGHT: (C) 2000-2004 by the GRASS Development Team
  15. *
  16. * This program is free software under the GNU General Public
  17. * License (>=v2). Read the file COPYING that comes with GRASS
  18. * for details.
  19. *
  20. *****************************************************************************/
  21. r.random.cells generates a random sets of cells that are at least
  22. some distance apart. The cells are numbered from 1 to the numbers of
  23. cells generated. Random cells will not be generated in areas masked off.
  24. OPTIONS
  25. -q
  26. This flag prevents the program from sending a verbose description to standard
  27. output of what the program is doing.
  28. -output
  29. Output map: Random cells. Each random cell has a unique non-zero cell
  30. value ranging from 1 to the number of cells generated. The heuristic for
  31. this algorithm is to randomly pick cells until there are no cells outside
  32. of the chosen cell's buffer of radius \fIdistance\fR.
  33. -distance
  34. Input value(s) [default 0.0]: distance determines the minimum distance
  35. the centers of the random cells will be apart.
  36. -seed
  37. Input value [default: random]: Specifies the random seed that
  38. r.random.cells will use to generate the cells. If the random seed
  39. is not given, then it will get a seed from the process ID number.
  40. NOTES
  41. The original purpose for this program was to generate independent random
  42. samples of cells in a study area. The distancevalue is the amount
  43. of spatial autocorrelation for the map being studied.