Debian Codegraph @

raster/r.li/r.li.richness/r.li.richness.md

raw symbols SCIP
1 ## DESCRIPTION
2
3 *r.li.richness* calculates the "richness diversity index" as:
4 ![r.li.richness formula](r_li_richness_formula.png)
5 with:
6
7 - **m**: number of different patch types
8
9 ## NOTES
10
11 Do not use absolute path names for the **config** and **output**
12 file/map parameters. If the "moving window" method was selected in
13 **g.gui.rlisetup**, then the output will be a raster map, otherwise an
14 ASCII file will be generated in the folder
15 `C:\Users\userxy\AppData\Roaming\GRASS8\r.li\output\` (MS-Windows) or
16 `$HOME/.grass8/r.li/output/` (GNU/Linux).
17
18 If the input raster map contains only NULL values then *r.li.richness*
19 returns 0.
20
21 ## EXAMPLES
22
23 To calculate the richness diversity index on map *my_map*, using
24 *my_conf* configuration file (previously defined with *g.gui.rlisetup*)
25 and saving results in *my_out*, run:
26
27 ```sh
28 r.li.richness input=my_map conf=my_conf output=my_out
29 ```
30
31 Forest map (Spearfish sample dataset) example:
32
33 ```sh
34 g.region raster=landcover.30m -p
35 r.mapcalc "forests = if(landcover.30m >= 41 && landcover.30m <= 43,1,null())"
36 r.li.richness input=forests conf=movwindow7 out=forests_richness_mov7
37 r.univar forests_richness_mov7
38 ```
39
40 Forest map (North Carolina sample dataset) example:
41
42 ```sh
43 g.region raster=landclass96 -p
44 r.mapcalc "forests = if(landclass96 == 5, 1, null() )"
45 r.li.richness input=forests conf=movwindow7 out=forests_richness_mov7
46
47 # verify
48 r.univar forests_richness_mov7
49 r.to.vect input=forests output=forests type=area
50 d.mon wx0
51 d.rast forests_richness_mov7
52 d.vect forests type=boundary
53 ```
54
55 ## SEE ALSO
56
57 *[r.li](r.li.md) (package overview),
58 [g.gui.rlisetup](g.gui.rlisetup.md)*
59
60 ## REFERENCES
61
62 McGarigal, K., and B. J. Marks. 1995. FRAGSTATS: spatial pattern
63 analysis program for quantifying landscape structure. USDA For. Serv.
64 Gen. Tech. Rep. PNW-351. ([PDF](https://doi.org/10.2737/PNW-GTR-351))
65
66 ## AUTHORS
67
68 Serena Pallecchi, student of Computer Science University of Pisa
69 (Italy).
70 Commission from Faunalia Pontedera (PI), Italy (<www.faunalia.it>)