r3.neighbors.html 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <h2>DESCRIPTION</h2>
  2. <em><b>r3.neighbors</b></em> looks at each voxel in a 3D raster input
  3. map layer, and examines the values assigned to the
  4. voxel in a user-defined "neighborhood" around it. It
  5. outputs a new 3D raster map in which each voxel is
  6. assigned a value that is a (user-specified)
  7. function of the values in that voxel's neighborhood. For
  8. example, each voxel in the output map might be assigned a
  9. value equal to the average of the values
  10. appearing in its 3 x 3 x 3 voxel "neighborhood" in the input
  11. map layer.
  12. <h3>OPTIONS</h3>
  13. The user must specify the names of the 3D raster map layers to
  14. be used for <b>input</b> and <b>output</b>, the
  15. <b>method</b> used to analyze neighborhood
  16. values (i.e., the neighborhood function or operation to be
  17. performed), and the moving <b>window</b> of the neighborhood.
  18. <p>
  19. <em>Neighborhood Operation Methods:</em>
  20. The <b>neighborhood</b> operators determine what new
  21. value a center voxel in a neighborhood will have after examining
  22. values inside its neighboring voxels.
  23. Each voxel in a 3D raster map layer becomes the center voxel of a neighborhood
  24. as the neighborhood window moves from voxel to voxel throughout the map layer.
  25. <em><b>r3.neighbors</b></em> can perform the following operations:
  26. <p><dl>
  27. <dt><b>average</b>
  28. <dd>The average value within the neighborhood.
  29. <dt><b>median</b>
  30. <dd>The value found half-way through a list of the
  31. neighborhood's values,
  32. when these are ranged in numerical order.
  33. <dt><b>mode</b>
  34. <dd>The most frequently occurring value in the neighborhood.
  35. <dt><b>minimum</b>
  36. <dd>The minimum value within the neighborhood.
  37. <dt><b>maximum</b>
  38. <dd>The maximum value within the neighborhood.
  39. <dt><b>range</b>
  40. <dd>The range value within the neighborhood.
  41. <dt><b>stddev</b>
  42. <dd>The statistical standard deviation of values
  43. within the neighborhood.
  44. <dt><b>sum</b>
  45. <dd>The sum of values within the neighborhood.
  46. <dt><b>variance</b>
  47. <dd>The statistical variance of values
  48. within the neighborhood.
  49. <dt><b>diversity</b>
  50. <dd>The number of different values within the neighborhood.
  51. <dt><b>interspersion</b>
  52. <dd>The percentage of voxels containing values which differ from the values
  53. assigned to the center voxel in the neighborhood, plus 1.
  54. </dl>
  55. <p><br>
  56. <em>Neighborhood Size:</em>
  57. The neighborhood moving <b>window</b> specifies which voxel surrounding any given
  58. voxel fall into the neighborhood for that voxel.
  59. The <b>window</b> must be three comma separated odd integers. The dimension order is: x,y,z.
  60. For example: the parameter window=3,3,3 specifies a moving window (a cube) with 27 voxel.
  61. <p>
  62. <h2>NOTES</h2>
  63. The <em><b>r3.neighbors</b></em> program works in the current geographic region.
  64. It is recommended, but not required,
  65. that the 3D resolution of the geographic region be the same as that
  66. of the 3D raster map layer.
  67. <p>
  68. <em><b>r3.neighbors</b></em> doesn't propagate NULLs, but computes the
  69. aggregation over the non-NULL voxels in the neighborhood.
  70. <p>
  71. <h2>SEE ALSO</h2>
  72. <em><a href="g.region.html">g.region</a></em><br>
  73. <em><a href="r.neighbors.html">r.neighbors</a></em><br>
  74. <em><a href="r3.mapcalc.html">r3.mapcalc</a></em><br>
  75. <em><a href="r3.stats.html">r3.stats</a></em><br>
  76. <em><a href="r3.support.html">r3.support</a></em>
  77. <h2>AUTHOR</h2>
  78. Soeren Gebbert
  79. <p>
  80. <i>Last changed: $Date$</i>