Debian Codegraph @

raster/r.li/r.li.cwed/r.li.cwed.md

raw
1 ## DESCRIPTION
2
3 *r.li.cwed* (contrast weighted edge density) calculates the edge density
4 between patch types specified:
5
6 ![rlicwed formula](rlicwed_formula.png)
7
8 with:
9
10 - **k**: attribute
11 - **m**: number of non-null attributes in the sampling area
12 - **e_ik**: total
13 length of edge in landscape between patch types i and k
14 - **d_ik**:
15 dissimilarity (edge contrast weight) between patch types i and k
16 - **Area**: total landscape area
17
18 The input file contains a row for each couple of patch type that we want
19 to consider in the calculation. Each row must be saved using this
20 syntax:
21
22 ```sh
23 patchType1,patchType2,dissimilarityBetweenPatchType1andPatchType2
24 ```
25
26 ## NOTES
27
28 Do not use absolute path names for the **config** and **output**
29 file/map parameters. If the "moving window" method was selected in
30 **g.gui.rlisetup**, then the output will be a raster map, otherwise an
31 ASCII file will be generated in the folder
32 `C:\Users\userxy\AppData\Roaming\GRASS8\r.li\output\` (MS-Windows) or
33 `$HOME/.grass8/r.li/output/` (GNU/Linux).
34
35 If the sample area contains only NULL values it is considered to have 0
36 patch and CWED=0. If Area is 0 *r.li.cwed* returns -1. This is only
37 possible if the map is masked.
38 If you want to change these -1 values to NULL, run subsequently on the
39 resulting map:
40
41 ```sh
42 r.null setnull=-1 input=my_map
43 ```
44
45 after index calculation.
46
47 ## EXAMPLES
48
49 To calculate the contrast weighted edge density index on map *my_map*,
50 using *my_conf* configuration file (previously defined with
51 *g.gui.rlisetup*) and saving results in *my_out*, run:
52
53 ```sh
54 r.li.cwed input=my_map conf=my_conf output=my_out \
55 path=/path/to/weights.csv
56 ```
57
58 Example for input "weights.csv" file:
59
60 ```sh
61 12,16,0.65
62 44,123,0.32
63 56,12,0.54
64 23,66,0.99
65 ```
66
67 ## SEE ALSO
68
69 *[r.li](r.li.md) (package overview),
70 [g.gui.rlisetup](g.gui.rlisetup.md)*
71
72 ## REFERENCES
73
74 McGarigal, K., and B. J. Marks. 1995. FRAGSTATS: spatial pattern
75 analysis program for quantifying landscape structure. USDA For. Serv.
76 Gen. Tech. Rep. PNW-351. ([PDF](https://doi.org/10.2737/PNW-GTR-351))
77
78 ## AUTHORS
79
80 Serena Pallecchi, student of Computer Science University of Pisa
81 (Italy).
82 Commission from Faunalia Pontedera (PI), Italy (<www.faunalia.it>)
83 Markus Metz