r.li.edgedensity.html 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <h2>DESCRIPTION</h2>
  2. <em>r.li.edgedensity </em>calculates:<br>
  3. <br>
  4. <ul>
  5. <li> the density of all edges of patch type <em>k</em>
  6. <img alt="r.li.edgedensity formula 1" src="r_li_edgedensity_formula_1.png">
  7. , or
  8. <li> the density of all edges in the sampling area if <em>k</em> is
  9. not specified,
  10. <img alt="r.li.edgedensity formula 2" src="r_li_edgedensity_formula_2.png">
  11. </ul>
  12. <p>with:
  13. <ul>
  14. <li><b>k</b>: patch type</li>
  15. <li><b>m</b>: number of patch types</li>
  16. <li><b>n</b>: number of edge segments of patch type k</li>
  17. <li><b>e<small><small>ik </small></small></b>:total edge length in
  18. the landscape involving patch type k</li>
  19. <li> <b>Area</b>: total landscape area</li>
  20. </ul>
  21. <p>
  22. The unit is meters per hectare.
  23. <h2>NOTES</h2>
  24. Do not use absolute path names for the <b>config</b> and <b>output</b>
  25. file/map parameters.
  26. If the "moving window" method was selected in <b>g.gui.rlisetup</b>, then the
  27. output will be a raster map, otherwise an ASCII file will be generated in
  28. the folder <tt>C:\Users\userxy\AppData\Roaming\GRASS7\r.li\output\</tt>
  29. (MS-Windows) or <tt>$HOME/.grass7/r.li/output/</tt> (GNU/Linux).
  30. <p>
  31. <!-- TODO: verify next: -->
  32. If the input raster map contains only NULL values then <em>r.li.edgedensity</em>
  33. consider to have 0 patches.<br>
  34. If area is 0 <em>r.li.edgedensity</em> returns NULL; this is only possible if input
  35. raster is masked.
  36. <h2>EXAMPLES</h2>
  37. To calculate the edge density index on map <em>my_map</em>, using
  38. <em>my_conf</em> configuration file (previously defined with
  39. <em>g.gui.rlisetup</em>) and saving results in <em>my_out</em>, run:
  40. <div class="code"><pre>
  41. r.li.edgedensity input=my_map conf=my_conf output=my_out
  42. </pre></div>
  43. To calculate edge density index of patch_type 34, using
  44. "my_conf" configuration file and on map "my_map", saving results in "my_out"
  45. file run:<br>
  46. <div class="code"><pre>
  47. r.li.edgedensity input=my_map conf=my_conf output=my_out patch_type=34
  48. </pre></div>
  49. <p>
  50. Forest map (Spearfish sample dataset) example:
  51. <div class="code"><pre>
  52. g.region raster=landcover.30m -p
  53. r.mapcalc "forests = if(landcover.30m >= 41 && landcover.30m <= 43,1,null())"
  54. r.li.edgedensity input=forests conf=movwindow7 out=forests_edgedens_mov7
  55. r.univar forests_edgedens_mov7
  56. </pre></div>
  57. <p>
  58. Forest map (North Carolina sample dataset) example:
  59. <div class="code"><pre>
  60. g.region raster=landclass96 -p
  61. r.mapcalc "forests = if(landclass96 == 5, 1, null() )"
  62. r.li.edgedensity input=forests conf=movwindow7 out=forests_edgedensity_mov7
  63. # verify
  64. r.univar forests_edgedensity_mov7
  65. r.to.vect input=forests output=forests type=area
  66. d.mon wx0
  67. d.rast forests_edgedensity_mov7
  68. d.vect forests type=boundary
  69. </pre></div>
  70. <h2>SEE ALSO</h2>
  71. <em>
  72. <a href="r.li.html">r.li</a> - package overview<br>
  73. <a href="g.gui.rlisetup.html">g.gui.rlisetup</a>
  74. </em>
  75. <h2>REFERENCES</h2>
  76. McGarigal, K., and B. J. Marks. 1995. FRAGSTATS: spatial pattern
  77. analysis program for quantifying landscape structure. USDA For. Serv.
  78. Gen. Tech. Rep. PNW-351. (<a href="http://treesearch.fs.fed.us/pubs/3064">PDF</a>)
  79. <h2>AUTHORS</h2>
  80. Serena Pallecchi student of Computer Science University of Pisa (Italy).<br>
  81. Commission from Faunalia Pontedera (PI), Italy (www.faunalia.it)<br>
  82. Markus Metz
  83. <p>
  84. <i>Last changed: $Date$</i>