r.li.shannon.html 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <h2>DESCRIPTION</h2>
  2. <em>r.li.shannon</em>
  3. calculates the "shannon's diversity index" as: <br>
  4. <img src="rliShannon_formula.png"><br>
  5. with:<br>
  6. <ul>
  7. <li><b>i</b>: patch type<br></li>
  8. <li><b>m</b>: number of patch type<br></li>
  9. <li><b>p<small><small>i</small></small></b>: proportion of the landscape occupied by patch type i<br></li>
  10. </ul>
  11. <h2>REFERENCES</h2>
  12. McGarigal, K., and B. J. Marks. 1995. FRAGSTATS: spatial pattern
  13. analysis program for quantifying landscape structure. USDA For. Serv.
  14. Gen. Tech. Rep. PNW-351.
  15. <h2>EXAMPLES</h2>
  16. To calculate shannon's diversity index on map my_map, using
  17. my_conf configuration file and saving results in my_out file run:<br>
  18. <div class="code"><pre>
  19. r.li.shannon input=my_map conf=my_conf output=my_out
  20. </pre></div>
  21. <h2>NOTES</h2>
  22. Do not use absolute path names for output files. They are raster if
  23. moving window disposition was selected, otherwise they are in
  24. ~/.r.li/output folder. <br>
  25. If input raster is full of null values r.li.shannon returns -1. <br>
  26. <!-- does that mean the program exit code or raster values?? -->
  27. If you want to have null values instead run <br>
  28. <div class="code"><pre>
  29. r.null setnull=-1 map=my_map
  30. </pre></div>
  31. after index calculation.
  32. <h2>SEE ALSO</h2>
  33. <em>
  34. <a href="r.li.html">r.li</a>
  35. </em>
  36. <h2>AUTHORS</h2>
  37. Serena Pallecchi student of Computer Science University of Pisa (Italy).<br>
  38. Commission from Faunalia Pontedera (PI), Italy (www.faunalia.it)
  39. <p>
  40. <i>Last changed: $Date$</i>