Debian Codegraph @

raster/r.li/r.li.cwed/r.li.cwed.html

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