| 1 |
<h2>DESCRIPTION</h2> |
| 2 |
|
| 3 |
<em>r.li.edgedensity </em>calculates: |
| 4 |
|
| 5 |
<ul> |
| 6 |
<li> the density of all edges of patch type <em>k</em> |
| 7 |
<img alt="r.li.edgedensity formula 1" src="r_li_edgedensity_formula_1.png"> |
| 8 |
, or</li> |
| 9 |
<li> the density of all edges in the sampling area if <em>k</em> is |
| 10 |
not specified, |
| 11 |
<img alt="r.li.edgedensity formula 2" src="r_li_edgedensity_formula_2.png"></li> |
| 12 |
</ul> |
| 13 |
<p>with: |
| 14 |
<ul> |
| 15 |
<li><b>k</b>: patch type</li> |
| 16 |
<li><b>m</b>: number of patch types</li> |
| 17 |
<li><b>n</b>: number of edge segments of patch type k</li> |
| 18 |
<li><b>e<small><small>ik </small></small></b>:total edge length in |
| 19 |
the landscape involving patch type k</li> |
| 20 |
<li> <b>Area</b>: total landscape area</li> |
| 21 |
</ul> |
| 22 |
<p> |
| 23 |
The unit is meters per hectare. |
| 24 |
|
| 25 |
<h2>NOTES</h2> |
| 26 |
|
| 27 |
Do not use absolute path names for the <b>config</b> and <b>output</b> |
| 28 |
file/map parameters. |
| 29 |
|
| 30 |
If the "moving window" method was selected in <b>g.gui.rlisetup</b>, then the |
| 31 |
output will be a raster map, otherwise an ASCII file will be generated in |
| 32 |
the folder <code>C:\Users\userxy\AppData\Roaming\GRASS8\r.li\output\</code> |
| 33 |
(MS-Windows) or <code>$HOME/.grass8/r.li/output/</code> (GNU/Linux). |
| 34 |
<p> |
| 35 |
|
| 36 |
If the input raster map contains only NULL values then <em>r.li.edgedensity</em> |
| 37 |
consider to have 0 patches.<br> |
| 38 |
If area is 0 <em>r.li.edgedensity</em> returns NULL; this is only possible if input |
| 39 |
raster is masked. |
| 40 |
|
| 41 |
<h2>EXAMPLES</h2> |
| 42 |
|
| 43 |
To calculate the edge density index on map <em>my_map</em>, using |
| 44 |
<em>my_conf</em> configuration file (previously defined with |
| 45 |
<em>g.gui.rlisetup</em>) and saving results in <em>my_out</em>, run: |
| 46 |
<div class="code"><pre> |
| 47 |
r.li.edgedensity input=my_map conf=my_conf output=my_out |
| 48 |
</pre></div> |
| 49 |
|
| 50 |
To calculate edge density index of patch_type 34, using |
| 51 |
"my_conf" configuration file and on map "my_map", saving results in "my_out" |
| 52 |
file run:<br> |
| 53 |
<div class="code"><pre> |
| 54 |
r.li.edgedensity input=my_map conf=my_conf output=my_out patch_type=34 |
| 55 |
</pre></div> |
| 56 |
<p> |
| 57 |
|
| 58 |
Forest map (Spearfish sample dataset) example: |
| 59 |
<div class="code"><pre> |
| 60 |
g.region raster=landcover.30m -p |
| 61 |
r.mapcalc "forests = if(landcover.30m >= 41 && landcover.30m <= 43,1,null())" |
| 62 |
r.li.edgedensity input=forests conf=movwindow7 out=forests_edgedens_mov7 |
| 63 |
r.univar forests_edgedens_mov7 |
| 64 |
</pre></div> |
| 65 |
<p> |
| 66 |
|
| 67 |
Forest map (North Carolina sample dataset) example: |
| 68 |
<div class="code"><pre> |
| 69 |
g.region raster=landclass96 -p |
| 70 |
r.mapcalc "forests = if(landclass96 == 5, 1, null() )" |
| 71 |
r.li.edgedensity input=forests conf=movwindow7 out=forests_edgedensity_mov7 |
| 72 |
|
| 73 |
# verify |
| 74 |
r.univar forests_edgedensity_mov7 |
| 75 |
r.to.vect input=forests output=forests type=area |
| 76 |
d.mon wx0 |
| 77 |
d.rast forests_edgedensity_mov7 |
| 78 |
d.vect forests type=boundary |
| 79 |
</pre></div> |
| 80 |
|
| 81 |
<h2>SEE ALSO</h2> |
| 82 |
|
| 83 |
<em> |
| 84 |
<a href="r.li.html">r.li</a> (package overview), |
| 85 |
<a href="g.gui.rlisetup.html">g.gui.rlisetup</a> |
| 86 |
</em> |
| 87 |
|
| 88 |
<h2>REFERENCES</h2> |
| 89 |
|
| 90 |
McGarigal, K., and B. J. Marks. 1995. FRAGSTATS: spatial pattern |
| 91 |
analysis program for quantifying landscape structure. USDA For. Serv. |
| 92 |
Gen. Tech. Rep. PNW-351. (<a href="https://doi.org/10.2737/PNW-GTR-351">PDF</a>) |
| 93 |
|
| 94 |
<h2>AUTHORS</h2> |
| 95 |
|
| 96 |
Serena Pallecchi, student of Computer Science University of Pisa (Italy).<br> |
| 97 |
Commission from Faunalia Pontedera (PI), Italy (www.faunalia.it)<br> |
| 98 |
Markus Metz |