r.li.padrange.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <h2>DESCRIPTION</h2>
  2. <em>r.li.padrange</em> calculates the range of patch area sizes in
  3. hectares as:<br>
  4. <img src="rlipadrange_formula.png" alt="r.li.padrange formula"> <br>
  5. with:<br>
  6. <ul>
  7. <li><b>a<small><small>max</small></small></b>: max patch area size</li>
  8. <li><b>a<small><small>min</small></small></b>: min patch area size</li>
  9. </ul>
  10. <p>
  11. This index is calculated using a 4 neighbour algorithm, diagonal cells
  12. are ignored when tracing a patch.
  13. <h2>NOTES</h2>
  14. Do not use absolute path names for the <b>config</b> and <b>output</b>
  15. file/map parameters.
  16. If the "moving window" method was selected in <b>g.gui.rlisetup</b>, then the
  17. output will be a raster map, otherwise an ASCII file will be generated in
  18. the folder <tt>C:\Users\userxy\AppData\Roaming\GRASS7\r.li\output\</tt>
  19. (MS-Windows) or <tt>$HOME/.grass7/r.li/output/</tt> (GNU/Linux).
  20. <p>
  21. If the sample area contains only NULL values then <em>r.li.padrange</em>
  22. returns NULL.<br>
  23. <h2>EXAMPLES</h2>
  24. To calculate range of patch area size index on map <em>my_map</em>, using
  25. <em>my_conf</em> configuration file (previously defined with
  26. <em>g.gui.rlisetup</em>) and saving results in <em>my_out</em>, run:
  27. <div class="code"><pre>
  28. r.li.padrange input=my_map conf=my_conf output=my_out
  29. </pre></div>
  30. <p>
  31. Forest map (Spearfish sample dataset) example:
  32. <div class="code"><pre>
  33. g.region raster=landcover.30m -p
  34. r.mapcalc "forests = if(landcover.30m >= 41 && landcover.30m <= 43,1,null())"
  35. r.li.padrange input=forests conf=movwindow7 out=forests_padrange_mov7
  36. r.univar forests_padrange_mov7
  37. </pre></div>
  38. <p>
  39. Forest map (North Carolina sample dataset) example:
  40. <div class="code"><pre>
  41. g.region raster=landclass96 -p
  42. r.mapcalc "forests = if(landclass96 == 5, 1, null() )"
  43. r.li.padrange input=forests conf=movwindow7 out=forests_padrange_mov7
  44. # verify
  45. r.univar forests_padrange_mov7
  46. r.to.vect input=forests output=forests type=area
  47. d.mon wx0
  48. d.rast forests_padrange_mov7
  49. d.vect forests type=boundary
  50. </pre></div>
  51. <h2>SEE ALSO</h2>
  52. <em>
  53. <a href="r.li.html">r.li</a> - package overview<br>
  54. <a href="g.gui.rlisetup.html">g.gui.rlisetup</a>
  55. </em>
  56. <h2>REFERENCES</h2>
  57. McGarigal, K., and B. J. Marks. 1995. FRAGSTATS: spatial pattern
  58. analysis program for quantifying landscape structure. USDA For. Serv.
  59. Gen. Tech. Rep. PNW-351. (<a href="http://treesearch.fs.fed.us/pubs/3064">PDF</a>)
  60. <h2>AUTHORS</h2>
  61. Michael Shapiro - CERL (patch identification)<br>
  62. Markus Metz (statistics)
  63. <p>
  64. <i>Last changed: $Date$</i></p>