Debian Codegraph @

raster/r.li/r.li.padcv/r.li.padcv.html

raw
1 <h2>DESCRIPTION</h2>
2
3 <em>r.li.padcv</em> calculates the coefficient of variation of patch
4 area sizes in hectares as:<br>
5 <img src="rlipadcv_formula1.png" alt="r.li.padcv formula"> <br>
6 with:<br>
7 <ul>
8 <li><b>SD</b>: standard deviation of patch area size
9 <img src="rlipadcv_formula2.png"> </li>
10 <li><b>MPS</b>: mean patch area size </li>
11 <li><b>a<small><small>i</small></small></b>: area of patch i</li>
12 <li><b>N<small>patch</small></b>: number of patches</li>
13 </ul>
14
15 <h2>NOTES</h2>
16
17 Do not use absolute path names for the <b>config</b> and <b>output</b>
18 file/map parameters.
19
20 If the "moving window" method was selected in <b>g.gui.rlisetup</b>, then the
21 output will be a raster map, otherwise an ASCII file will be generated in
22 the folder <code>C:\Users\userxy\AppData\Roaming\GRASS8\r.li\output\</code>
23 (MS-Windows) or <code>$HOME/.grass8/r.li/output/</code> (GNU/Linux).
24 <p>
25 The result is NULL if the sample area contains only NULL values.
26
27 <h2>EXAMPLES</h2>
28
29 To calculate patch area distribution coefficient of variation index on map <em>my_map</em>, using
30 <em>my_conf</em> configuration file (previously defined with
31 <em>g.gui.rlisetup</em>) and saving results in <em>my_out</em>, run:
32 <div class="code"><pre>
33 r.li.padcv input=my_map conf=my_conf output=my_out
34 </pre></div>
35 <p>
36
37 Forest map (Spearfish sample dataset) example:
38 <div class="code"><pre>
39 g.region raster=landcover.30m -p
40 r.mapcalc "forests = if(landcover.30m &gt;= 41 &amp;&amp; landcover.30m &lt;= 43,1,null())"
41 r.li.padcv input=forests conf=movwindow7 out=forests_padcv_mov7
42 r.univar forests_padcv_mov7
43 </pre></div>
44 <p>
45
46 Forest map (North Carolina sample dataset) example:
47 <div class="code"><pre>
48 g.region raster=landclass96 -p
49 r.mapcalc "forests = if(landclass96 == 5, 1, null() )"
50 r.li.padcv input=forests conf=movwindow7 out=forests_padcv_mov7
51
52 # verify
53 r.univar forests_padcv_mov7
54 r.to.vect input=forests output=forests type=area
55 d.mon wx0
56 d.rast forests_padcv_mov7
57 d.vect forests type=boundary
58 </pre></div>
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 Michael Shapiro - CERL (patch identification)<br>
76 Markus Metz (statistics)