g.gui.rlisetup.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <!-- meta page description: wxGUI RLi Setup -->
  2. <!-- meta page index: topic_gui|GUI -->
  3. <h2>DESCRIPTION</h2>
  4. The <b>g.gui.rlisetup</b> is a <em><a href="wxGUI.html">wxGUI</a></em>
  5. component which allows the user to create a configuration file
  6. for the analytical <em>r.li</em> modules. For a general introduction, see
  7. <a href="r.li.html">r.li</a>.
  8. <br>
  9. The configurations are raster map independent, it means that you can use
  10. a file created on a raster map for analyze any other you have. <br>
  11. The program is completely interactive and uses a GUI to help you
  12. in your choices.
  13. <p>
  14. TODO: merge in material from GRASS GIS 6 (raster/r.li/r.li.setup/r.li.setup.html)
  15. <h2>NOTES</h2>
  16. Configuration files are raster map independent because areas are saved using
  17. relative coordinates.
  18. <h2>EXAMPLES</h2>
  19. <h3>Moving window analysis on full region</h3>
  20. <i>TODO: update examples to new g.gui.rlisetup dialog:</i>
  21. <p>
  22. Example for a 7x7 moving window analysis on full region, the output
  23. is a raster map:
  24. <p>
  25. Click on "New", then:
  26. <ul>
  27. <li> Configuration file name: "movwindow7"</li>
  28. <li> Raster map name to use to select areas: "forests"</li>
  29. </ul>
  30. 1. Setup sampling frame:
  31. <ul>
  32. <li> Define a sampling frame (region for analysis): "Whole map layer", then "OK"</li>
  33. </ul>
  34. 2. Setup sampling frame
  35. <ul>
  36. <li> Define sampling areas: "Moving window", then "OK"</li>
  37. <li> Then click on "Use keyboard to define moving window dimension"</li>
  38. </ul>
  39. Select type of shape:
  40. <ul>
  41. <li> [x] Rectangular</li>
  42. <li> Width size (in cells)?: "7"</li>
  43. <li> Height size (in cells)?: "7"</li>
  44. <li> Then "Save settings"</li>
  45. </ul>
  46. 3. Save settings: click on button
  47. <br>
  48. (4.) Close
  49. <p>
  50. Now an anaysis can be performed using one of the analytical modules, e.g.
  51. <div class="code"><pre>
  52. g.region rast=forests -p
  53. r.li.patchdensity input=forests conf=movwindow7 output=forests_p_dens7
  54. r.univar forests_p_dens7
  55. </pre></div>
  56. The result is the new raster map "forests_p_dens7" which shows (in this example)
  57. the patch density of the forest areas.
  58. <br>
  59. See the respective modules for further examples.
  60. <h3>Whole region analysis</h3>
  61. <!-- TODO: find a better example and briefly explain the meaning of result -->
  62. Example for a whole region analysis, the output is a text file:
  63. Click on "New", then:
  64. <ul>
  65. <li> Configuration file name: "whole_region"</li>
  66. <li> Raster map name to use to select areas: "lsat7_2000_40"</li>
  67. </ul>
  68. 1. Setup sampling frame:
  69. <ul>
  70. <li> Define a sampling frame (region for analysis): "Whole map layer", then "OK"</li>
  71. </ul>
  72. 2. Setup sampling frame
  73. <ul>
  74. <li> Define sampling areas: "Whole map layer", then "OK"</li>
  75. </ul>
  76. 3. Save settings: click on button
  77. <br>
  78. (4.) Close
  79. <p>
  80. Now an anaysis can be performed using one of the analytical modules, e.g.
  81. <div class="code"><pre>
  82. g.region rast=lsat7_2002_40 -p
  83. r.li.shannon input=lsat7_2000_40 conf=whole_region output=lsat7_2000_40_shannon
  84. </pre></div>
  85. The result is the new text file "forests_p_dens7" (stored in folder <tt>$HOME/.r.li/output/</tt>.
  86. <br>
  87. See the respective modules for further examples.
  88. <h2>SEE ALSO</h2>
  89. <em>
  90. <a href="r.li.html">r.li</a> - package overview<br>
  91. <a href="r.li.daemon.html">r.li.daemon</a>
  92. </em>
  93. <p>
  94. <em>
  95. <a href="http://grass.osgeo.org/gdp/landscape/r_le_manual5.pdf">Old r.le suite manual</a>
  96. </em>
  97. <p>
  98. <em>
  99. <a href="wxGUI.html">wxGUI</a><br>
  100. <a href="wxGUI.components.html">wxGUI components</a>
  101. </em>
  102. <h2>REFERENCES</h2>
  103. McGarigal, K., and B. J. Marks. 1995. FRAGSTATS: spatial pattern
  104. analysis program for quantifying landscape structure. USDA For. Serv.
  105. Gen. Tech. Rep. PNW-351. (<a href="http://treesearch.fs.fed.us/pubs/3064">PDF</a>)
  106. <h2>AUTHOR</h2>
  107. Luca Delucchi<br>
  108. Rewritten from <em>r.li.setup</em> by Claudio Porta and Lucio Davide Spano
  109. <p>
  110. <i>$Date$</i>