Debian Codegraph @

raster/r.li/r.li.padcv/r.li.padcv.md

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