r.random.surface.html 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <h2>DESCRIPTION</h2>
  2. <em>r.random.surface</em> generates a spatially dependent random surface.
  3. The random surface is composed of values representing the deviation from the
  4. mean of the initial random values driving the algorithm. The initial random
  5. values are independent Gaussian random deviates with a mean of 0 and
  6. standard deviation of 1. The initial values are spread over each output map
  7. using filter(s) of diameter distance. The influence of each random value on
  8. nearby cells is determined by a distance decay function based on exponent.
  9. If multiple filters are passed over the output maps, each filter is given a
  10. weight based on the weight inputs. The resulting random surface can have
  11. <em>any</em> mean and variance, but the theoretical mean of an infinitely
  12. large map is 0.0 and a variance of 1.0. Description of the algorithm is in
  13. the <b>NOTES</b> section.
  14. <p>The random surface generated are composed of floating point numbers, and
  15. saved in the category description files of the output map(s). Cell values
  16. are uniformly or normally distributed between 1 and high values inclusive
  17. (determined by whether the <b>-u</b> flag is used). The category names
  18. indicate the average floating point value and the range of floating point
  19. values that each cell value represents.
  20. <p><em>r.random.surface's</em> original goal is to generate random fields for
  21. spatial error modeling. A procedure to use <em>r.random.surface</em> in
  22. spatial error modeling is given in the <b>NOTES</b> section.
  23. <h3>Detailed parameter description</h3>
  24. <dl>
  25. <dt><b>output</b></dt>
  26. <dd>Random surface(s). The cell values are a random distribution
  27. between the low and high values inclusive. The category values of the
  28. output map(s) are in the form <em>#.# #.# to #.#</em> where each #.#
  29. is a floating point number. The first number is the average of the
  30. random values the cell value represents. The other two numbers are the
  31. range of random values for that cell value. The <em>average</em> mean
  32. value of generated <tt>output</tt> map(s) is 0. The <em>average</em>
  33. variance of map(s) generated is 1. The random values represent the
  34. standard deviation from the mean of that random surface.</dd>
  35. <dt><b>distance</b></dt>
  36. <dd>Distance determines the spatial dependence of the output
  37. map(s). The distance value indicates the minimum distance at which two
  38. map cells have no relationship to each other. A distance value of 0.0
  39. indicates that there is no spatial dependence (i.e., adjacent cell
  40. values have no relationship to each other). As the distance value
  41. increases, adjacent cell values will have values closer to each
  42. other. But the range and distribution of cell values over the output
  43. map(s) will remain the same. Visually, the clumps of lower and higher
  44. values gets larger as distance increases. If multiple values are
  45. given, each output map will have multiple filters, one for each set of
  46. distance, exponent, and weight values.</dd>
  47. <dt><b>exponent</b></dt>
  48. <dd>Exponent determines the distance decay exponent for a particular
  49. filter. The exponent value(s) have the property of determining
  50. the <em>texture</em> of the random surface. Texture will decrease as
  51. the exponent value(s) get closer to 1.0. Normally, exponent will be
  52. 1.0 or less. If there are no exponent values given, each filter will
  53. be given an exponent value of 1.0. If there is at least one exponent
  54. value given, there must be one exponent value for each distance value.</dd>
  55. <dt><b>flat</b></dt>
  56. <dd>Flat determines the distance at which the filter.</dd>
  57. <dt><b>weight</b></dt>
  58. <dd>Weight determines the relative importance of each filter. For
  59. example, if there were two filters driving the algorithm and
  60. weight=1.0, 2.0 was given in the command line: The second filter would
  61. be twice as important as the first filter. If no weight values are
  62. given, each filter will be just as important as the other filters
  63. defining the random field. If weight values exist, there must be a
  64. weight value for each filter of the random field.</dd>
  65. <dt><b>high</b></dt>
  66. <dd>Specifies the high end of the range of cell values in the output
  67. map(s). Specifying a very large high value will minimize
  68. the <em>errors</em> caused by the random surface's discretization. The
  69. word errors is in quotes because errors in discretization are often
  70. going to cancel each other out and the spatial statistics are far more
  71. sensitive to the initial independent random deviates than any
  72. potential discretization errors.</dd>
  73. <dt><b>seed</b></dt>
  74. <dd>Specifies the random seed(s), one for each map,
  75. that <em>r.random.surface</em> will use to generate the initial set of
  76. random values that the resulting map is based on. If the random seed
  77. is not given, <em>r.random.surface</em> will get a seed from the
  78. process ID number.</dd>
  79. </dl>
  80. <h2>NOTES</h2>
  81. While most literature uses the term random field instead of random surface,
  82. this algorithm always generates a surface. Thus, its use of random surface.
  83. <p><em>r.random.surface</em> builds the random surface using a filter algorithm
  84. smoothing a map of independent random deviates. The size of the filter is
  85. determined by the largest distance of spatial dependence. The shape of the
  86. filter is determined by the distance decay exponent(s), and the various
  87. weights if different sets of spatial parameters are used. The map of
  88. independent random deviates will be as large as the current region PLUS the
  89. extent of the filter. This will eliminate edge effects caused by the
  90. reduction of degrees of freedom. The map of independent random deviates will
  91. ignore the current mask for the same reason.
  92. <p>One of the most important uses for <em>r.random.surface</em> is to determine
  93. how the error inherent in raster maps might effect the analyses done with
  94. those maps.
  95. <h2>REFERENCES</h2>
  96. Random Field Software for GRASS by Chuck Ehlschlaeger
  97. <p> As part of my dissertation, I put together several programs that help
  98. GRASS (4.1 and beyond) develop uncertainty models of spatial data. I hope
  99. you find it useful and dependable. The following papers might clarify their
  100. use:
  101. <ul>
  102. <li> Ehlschlaeger, C.R., Shortridge, A.M., Goodchild, M.F., 1997.
  103. Visualizing spatial data uncertainty using animation.
  104. Computers & Geosciences 23, 387-395. doi:10.1016/S0098-3004(97)00005-8</li>
  105. <li><a href="http://www.geo.hunter.cuny.edu/~chuck/paper.html">Modeling
  106. Uncertainty in Elevation Data for Geographical Analysis</a>, by
  107. Charles R. Ehlschlaeger, and Ashton M. Shortridge. Proceedings of the
  108. 7th International Symposium on Spatial Data Handling, Delft,
  109. Netherlands, August 1996.</li>
  110. <li><a href="http://www.geo.hunter.cuny.edu/~chuck/acm/paper.html">Dealing
  111. with Uncertainty in Categorical Coverage Maps: Defining, Visualizing,
  112. and Managing Data Errors</a>, by Charles Ehlschlaeger and Michael
  113. Goodchild. Proceedings, Workshop on Geographic Information Systems at
  114. the Conference on Information and Knowledge Management, Gaithersburg
  115. MD, 1994.</li>
  116. <li><a href="http://www.geo.hunter.cuny.edu/~chuck/gislis/gislis.html">Uncertainty
  117. in Spatial Data: Defining, Visualizing, and Managing Data
  118. Errors</a>, by Charles Ehlschlaeger and Michael
  119. Goodchild. Proceedings, GIS/LIS'94, pp. 246-253, Phoenix AZ,
  120. 1994.</li>
  121. </ul>
  122. <h2>SEE ALSO</h2>
  123. <em>
  124. <a href="r.random.html">r.random</a>,
  125. <a href="r.random.cells.html">r.random.cells</a>,
  126. <a href="r.mapcalc.html">r.mapcalc</a>,
  127. <a href="r.surf.random.html">r.surf.random</a>
  128. </em>
  129. <h2>AUTHORS</h2>
  130. Charles Ehlschlaeger, Michael Goodchild, and Chih-chang Lin; National Center
  131. for Geographic Information and Analysis, University of California, Santa
  132. Barbara.
  133. <p><i>Last changed: $Date$</i>