3
<em>r.li.patchnum</em> calculates the "patch number index" as:<br>
4
<I> f(sample_area)= Patch_Number </I><br>
7
This index is calculated using a 4 neighbour algorithm, diagonal cells
8
are ignored when tracing a patch.
12
Do not use absolute path names for the <b>config</b> and <b>output</b>
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 <tt>C:\Users\userxy\AppData\Roaming\GRASS7\r.li\output\</tt>
18
(MS-Windows) or <tt>$HOME/.grass7/r.li/output/</tt> (GNU/Linux).
20
If the sample area contains only NULL values then it is considered to
21
have zero patches. <br>
24
To calculate patch number index on map <em>my_map</em>, using
25
<em>my_conf</em> configuration file (previously defined with
26
<em>g.gui.rlisetup</em>) and saving results in <em>my_out</em>, run:
27
<div class="code"><pre>
28
r.li.patchnum input=my_map conf=my_conf out=my_out
32
Forest map (Spearfish sample dataset) example:
33
<div class="code"><pre>
34
g.region raster=landcover.30m -p
35
r.mapcalc "forests = if(landcover.30m >= 41 && landcover.30m <= 43,1,null())"
36
r.li.patchnum input=forests conf=movwindow7 out=forests_patchnum_mov7
37
r.univar forests_patchnum_mov7
41
Forest map (North Carolina sample dataset) example:
42
<div class="code"><pre>
43
g.region raster=landclass96 -p
44
r.mapcalc "forests = if(landclass96 == 5, 1, null() )"
45
r.li.patchnum input=forests conf=movwindow7 out=forests_patchnum_mov7
48
r.univar forests_patchnum_mov7
49
r.to.vect input=forests output=forests type=area
51
d.rast forests_patchnum_mov7
52
d.vect forests type=boundary
57
<a href="r.li.html">r.li</a> - package overview<br>
58
<a href="g.gui.rlisetup.html">g.gui.rlisetup</a>
62
McGarigal, K., and B. J. Marks. 1995. FRAGSTATS: spatial pattern
63
analysis program for quantifying landscape structure. USDA For. Serv.
64
Gen. Tech. Rep. PNW-351. (<a href="http://treesearch.fs.fed.us/pubs/3064">PDF</a>)
67
Michael Shapiro - CERL (patch identification)<br>
68
Markus Metz (statistics)
71
<i>Last changed: $Date: 2014-12-19 22:55:37 +0100 (Fri, 19 Dec 2014) $</i>