r.li.renyi.html 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <h2>DESCRIPTION</h2>
  2. <em>r.li.renyi</em> calculates the "Renyi's diversity index" as:<br>
  3. <img src="r_li_renyi.png" alt="r.li.renyi formula"> <br>
  4. with:
  5. <ul>
  6. <li><b>H</b>: Renyi entropy</li>
  7. <li><b>alpha</b>: order of the generalized entropy</li>
  8. <li><b>i</b>: patch type</li>
  9. <li><b>S</b>: number of different patch types</li>
  10. <li><b>p<small><small>i</small></small></b>: proportional abundance of
  11. patch type <i>i</i> </li>
  12. </ul>
  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. <!-- TODO: verify next: -->
  22. If the input raster map contains only NULL values then <em>r.li.renyi</em>
  23. returns NULL.
  24. <h2>EXAMPLES</h2>
  25. To calculate Renyi's diversity index on map <em>my_map</em>, using
  26. <em>my_conf</em> configuration file (previously defined with
  27. <em>g.gui.rlisetup</em>) and saving results in <em>my_out</em>, run:
  28. <div class="code"><pre>
  29. r.li.renyi input=my_map conf=my_conf output=my_out alpha=0.6
  30. </pre></div>
  31. <p>
  32. Forest map (Spearfish sample dataset) example:
  33. <div class="code"><pre>
  34. g.region raster=landcover.30m -p
  35. r.mapcalc "forests = if(landcover.30m >= 41 && landcover.30m <= 43,1,null())"
  36. r.li.renyi input=forests conf=movwindow7 out=forests_renyi_mov7_a06 alpha=0.6
  37. r.univar forests_renyi_mov7_a06
  38. </pre></div>
  39. <p>
  40. Forest map (North Carolina sample dataset) example:
  41. <div class="code"><pre>
  42. g.region raster=landclass96 -p
  43. r.mapcalc "forests = if(landclass96 == 5, 1, null() )"
  44. r.li.renyi input=forests conf=movwindow7 out=forests_renyi_mov7
  45. # verify
  46. r.univar forests_renyi_mov7
  47. r.to.vect input=forests output=forests type=area
  48. d.mon wx0
  49. d.rast forests_renyi_mov7
  50. d.vect forests type=boundary
  51. </pre></div>
  52. <h2>SEE ALSO</h2>
  53. <em>
  54. <a href="r.li.html">r.li</a> - package overview<br>
  55. <a href="g.gui.rlisetup.html">g.gui.rlisetup</a>
  56. </em>
  57. <h2>REFERENCES</h2>
  58. McGarigal, K., and B. J. Marks. 1995. FRAGSTATS: spatial pattern
  59. analysis program for quantifying landscape structure. USDA For. Serv.
  60. Gen. Tech. Rep. PNW-351. (<a href="http://treesearch.fs.fed.us/pubs/3064">PDF</a>)
  61. <h2>AUTHORS</h2>
  62. Luca Delucchi and Duccio Rocchini, Fondazione E. Mach (Italy), based on
  63. the <em>r.li.shannon</em> code developed by Serena Pallecchi student of
  64. Computer Science University of Pisa (Italy).<br>
  65. <p>
  66. <i>Last changed: $Date$</i>