Debian Codegraph @

raster/r.li/r.li.patchnum/r.li.patchnum.html

raw
1 <h2>DESCRIPTION</h2>
2
3 <em>r.li.patchnum</em> calculates the "patch number index" as:<br>
4 <i> f(sample_area)= Patch_Number </i><br>
5
6 <p>
7 This index is calculated using a 4 neighbour algorithm, diagonal cells
8 are ignored when tracing a patch.
9
10 <h2>NOTES</h2>
11
12 Do not use absolute path names for the <b>config</b> and <b>output</b>
13 file/map parameters.
14
15 If the "moving window" method was selected in <b>g.gui.rlisetup</b>, then the
16 output will be a raster map, otherwise an ASCII file will be generated in
17 the folder <code>C:\Users\userxy\AppData\Roaming\GRASS8\r.li\output\</code>
18 (MS-Windows) or <code>$HOME/.grass8/r.li/output/</code> (GNU/Linux).
19 <p>
20 If the sample area contains only NULL values then it is considered to
21 have zero patches. <br>
22
23 <h2>EXAMPLES</h2>
24
25 To calculate patch number index on map <em>my_map</em>, using
26 <em>my_conf</em> configuration file (previously defined with
27 <em>g.gui.rlisetup</em>) and saving results in <em>my_out</em>, run:
28 <div class="code"><pre>
29 r.li.patchnum input=my_map conf=my_conf out=my_out
30 </pre></div>
31 <p>
32
33 Forest map (Spearfish sample dataset) example:
34 <div class="code"><pre>
35 g.region raster=landcover.30m -p
36 r.mapcalc "forests = if(landcover.30m &gt;= 41 &amp;&amp; landcover.30m &lt;= 43,1,null())"
37 r.li.patchnum input=forests conf=movwindow7 out=forests_patchnum_mov7
38 r.univar forests_patchnum_mov7
39 </pre></div>
40 <p>
41
42 Forest map (North Carolina sample dataset) example:
43 <div class="code"><pre>
44 g.region raster=landclass96 -p
45 r.mapcalc "forests = if(landclass96 == 5, 1, null() )"
46 r.li.patchnum input=forests conf=movwindow7 out=forests_patchnum_mov7
47
48 # verify
49 r.univar forests_patchnum_mov7
50 r.to.vect input=forests output=forests type=area
51 d.mon wx0
52 d.rast forests_patchnum_mov7
53 d.vect forests type=boundary
54 </pre></div>
55
56 <h2>SEE ALSO</h2>
57
58 <em>
59 <a href="r.li.html">r.li</a> (package overview),
60 <a href="g.gui.rlisetup.html">g.gui.rlisetup</a>
61 </em>
62
63 <h2>REFERENCES</h2>
64
65 McGarigal, K., and B. J. Marks. 1995. FRAGSTATS: spatial pattern
66 analysis program for quantifying landscape structure. USDA For. Serv.
67 Gen. Tech. Rep. PNW-351. (<a href="https://doi.org/10.2737/PNW-GTR-351">PDF</a>)
68
69 <h2>AUTHORS</h2>
70
71 Michael Shapiro - CERL (patch identification)<br>
72 Markus Metz (statistics)