r.random.surface.html 7.5 KB

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