3
<em>r.li.simpson</em> calculates the "Simpson's diversity index" as:<br>
4
<img src="rliSimpson_formula.png" alt="r.li.simpson formula"> <br>
7
<li><b>i</b>: patch type</li>
8
<li><b>m</b>: number of different patch types</li>
9
<li><b>p<small><small>i</small></small></b>: proportional abundance of
10
patch type <i>i</i> </li>
15
Do not use absolute path names for the <b>config</b> and <b>output</b>
17
If the "moving window" method was selected in <b>g.gui.rlisetup</b>, then the
18
output will be a raster map, otherwise an ASCII file will be generated in
19
the folder <tt>C:\Users\userxy\AppData\Roaming\GRASS7\r.li\output\</tt>
20
(MS-Windows) or <tt>$HOME/.grass7/r.li/output/</tt> (GNU/Linux).
22
<!-- TODO: verify next: -->
23
If the input raster map contains only NULL values then <em>r.li.simpson</em>
27
To calculate Simpson's diversity index on map <em>my_map</em>, using
28
<em>my_conf</em> configuration file (previously defined with
29
<em>g.gui.rlisetup</em>) and saving results in <em>my_out</em>, run:
30
<div class="code"><pre>
31
r.li.simpson input=my_map conf=my_conf output=my_out
35
Forest map (Spearfish sample dataset) example:
36
<div class="code"><pre>
37
g.region raster=landcover.30m -p
38
r.mapcalc "forests = if(landcover.30m >= 41 && landcover.30m <= 43,1,null())"
39
r.li.simpson input=forests conf=movwindow7 out=forests_simpson_mov7
40
r.univar forests_simpson_mov7
44
Forest map (North Carolina sample dataset) example:
45
<div class="code"><pre>
46
g.region raster=landclass96 -p
47
r.mapcalc "forests = if(landclass96 == 5, 1, null() )"
48
r.li.simpson input=forests conf=movwindow7 out=forests_simpson_mov7
51
r.univar forests_simpson_mov7
52
r.to.vect input=forests output=forests type=area
54
d.rast forests_simpson_mov7
55
d.vect forests type=boundary
60
<a href="r.li.html">r.li</a> - package overview<br>
61
<a href="g.gui.rlisetup.html">g.gui.rlisetup</a>
65
McGarigal, K., and B. J. Marks. 1995. FRAGSTATS: spatial pattern
66
analysis program for quantifying landscape structure. USDA For. Serv.
67
Gen. Tech. Rep. PNW-351. (<a href="http://treesearch.fs.fed.us/pubs/3064">PDF</a>)
70
Serena Pallecchi student of Computer Science University of Pisa (Italy).<br>
71
Commission from Faunalia Pontedera (PI), Italy (www.faunalia.it)
74
<i>Last changed: $Date: 2014-12-19 22:55:37 +0100 (Fri, 19 Dec 2014) $</i>