/usr/share/doc/grass-doc/html/r.li.html is in grass-doc 6.4.3-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>r.li</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="grassdocs.css" type="text/css">
</head>
<body bgcolor="white">
<img src="grass_logo.png" alt="GRASS logo"><hr align=center size=6 noshade>
<h2>NAME</h2>
<em><b>r.li</b></em> - Landscape structure analysis package overview.
<h2>KEYWORDS</h2>
raster, landscape structure analysis, overview, landscape metrics, landscape pattern, landscape analysis
<h2>DESCRIPTION</h2>
The <em>r.li</em> suite is a toolset for multiscale analysis of landscape structure.
It aims at replacing the <em>r.le</em> suite of modules through a client-server,
multiprocess implementation. External software for quantitative measures of landscape
structure is for example FRAGSTATS (McGarigal and Marks 1995).
<p>
The <em>r.li</em> suite offers a set of patch and diversity indices.
It supports analysis of landscapes composed of a mosaic of
patches, but, more generally, the modules work with any two-dimensional
raster map whose cell values are integer (e.g., 1, 2) or floating point
(e.g., 1.1, 3.2) values. The <em>r.li.setup</em> module has options for
controlling the shape, size, number, and distribution of sampling
areas used to collect information about the landscape structure.
Sampling area shapes can be the entire map or a moving
window of square, rectangular or with circular shape. The size of
sampling areas can be changed, so that the landscape can be analyzed
at a variety of spatial scales simultaneously. Sampling areas may be
distributed across the landscape in a random, systematic, or
stratified-random manner, or as a moving window.
<p>
The <em>r.li</em> modules can calculate a number of measures that produce
single values as output (e.g. mean patch size in the sampling area),
as well as measures that produce a distribution of values as output
(e.g. frequency distribution of patch sizes in the sampling area). The
results are stored as raster maps.
<p>
The general procedure to calculate an index from a raster map is two-fold:
<ol>
<li>run <em>r.li.setup</em>: create a configuration file selecting the parts of
raster to analyze.
<li>run <em>r.li.'index'</em> (e.g., <em>r.li.patchdensity</em>) for calculate the selected
index using on the areas selected on configuration file.
</ol>
<h2>NOTE</h2>
Also the <em>r.li.daemon</em> has a main function and it can be run, but it is only a
template for development of new indices.
<!-- mhh ??: -->
The function itself has no meaning, it can be used only for debug.
<h2>EXAMPLE</h2>
To calculate a patch density index on a whole 'geology' raster map in the
Spearfish region, using a 5x5 moving window, follow this procedure:
<ol>
<li> CREATE A NEW CONFIGURATION FILE
<ol>
<li> run
<div class="code"><pre>
r.li.setup
</pre></div>
<li> The main <em>r.li.setup</em> window is displayed, click on "New"
<li> Now it is displayed the new configuration window,
enter the configuration file name (e.g., "my_conf", do not use absolute paths)
and the name of raster map (e.g., "geology").
The other fields are not needed for this configuration.
<li> Click on "Setup sampling frame", select "Whole maplayer" and click "OK"
<li> Click on "Setup sampling areas", select "Moving window" and click "OK"
<li> Click on "Use keyboard to enter moving window dimension"
<li> Select "Rectangle" and enter 5 on "heigth" and "width" fields
<li> Click on "Save settings"
<li> Close <em>r.li.setup</em> window
</ol>
<li> CALCULATE PATCHDENSITY INDEX
<ol>
<li> set region settings to geology raster map:
<div class="code"><pre>
g.region rast=geology -p
</pre></div>
<li> run <em>r.li.patchdensity</em>:
<div class="code"><pre>
r.li.patchdensity map=geology conf=my_conf out=patchdens
</pre></div>
</ol>
</ol>
The resulting patch density is stored in "patchdens" raster map.
You can verify the result for example with contour lines:
<div class="code"><pre>
r.contour in=patchdens out=patchdens step=5
d.rast patchdens
d.vect -c patchdens
</pre></div>
Note that if you want to run another index with the same area
configuration, you don't have to create another configuration file.
You can also use the same area configuration file on another map. The
program rescale it automatically. For instance if you have selected a
5x5 sample area on 100x100 raster map, and you use the same
configuration file on a 200x200 raster map, then the sample area is
10x10.
<h2>SEE ALSO</h2>
<b>Core modules</b>:
</ul>
<li> <a href="r.li.daemon.html">r.li.daemon</a>: job launch daemon</li>
<li> <a href="r.li.setup.html">r.li.setup</a>: Configuration editor for r.li.'index'</li>
</ul>
<b>Patch indices</b>:
<ul>
<li>Indices based on patch number:
</ul>
<li> <a href="r.li.patchdensity.html">r.li.patchdensity</a>: Calculates patch density index on a raster map, using a 4 neighbour algorithm</li>
<li> <a href="r.li.patchnum.html">r.li.patchnum</a>: Calculates patch number index on a raster map, using a 4 neighbour algorithm</li>
<ul>
<li>Indices based on patch dimension:
</ul>
<li> <a href="r.li.mps.html">r.li.mps</a>: Calculates mean patch size index on a raster map, using a 4 neighbour algorithm</li>
<li> <a href="r.li.padcv.html">r.li.padcv</a>: Calculates coefficient of variation of patch area on a raster map</li>
<li> <a href="r.li.padrange.html">r.li.padrange</a>: Calculates range of patch area size on a raster map</li>
<li> <a href="r.li.padsd.html">r.li.padsd</a>: Calculates standard deviation of patch area a raster map</li>
<ul>
<li>Indices based on patch shape:
</ul>
<li> <a href="r.li.shape.html">r.li.shape</a>: Calculates shape index on a raster map</li>
<ul>
<li>Indices based on patch edge: <!-- border? -->
</ul>
<li> <a href="r.li.edgedensity.html">r.li.edgedensity</a>: Calculates edge density index on a raster map, using a 4 neighbour algorithm</li>
<ul>
<li>Indices based on patch attributes:
</ul>
<li> <a href="r.li.cwed.html">r.li.cwed</a>: Calculates contrast Weighted Edge Density index on a raster map</li>
<li> <a href="r.li.mpa.html">r.li.mpa</a>: Calculates mean pixel attribute index on a raster map</li>
</ul>
</ul>
<b>Diversity indices</b>:
</ul>
<li> <a href="r.li.dominance.html">r.li.dominance</a>: Calculates dominance diversity index on a raster map</li>
<li> <a href="r.li.pielou.html">r.li.pielou</a>: Calculates Pielou eveness index on a raster map</li>
<li> <a href="r.li.renyi.html">r.li.renyi</a>: Calculates Renyi entropy on a raster map</li>
<li> <a href="r.li.richness.html">r.li.richness</a>: Calculates richness diversity index on a raster map</li>
<li> <a href="r.li.shannon.html">r.li.shannon</a>: Calculates Shannon diversity index on a raster map</li>
<li> <a href="r.li.simpson.html">r.li.simpson</a>: Calculates Simpson diversity index on a raster map</li>
</ul>
<h2>ADDING NEW INDICES</h2>
New indices can be defined and implemented by any C programmer, without having to
deal with all basic functions (IO etc.). The computing architecture and the functions
are clearly separated, thus allowing an easy expandability. Every index is defined
separately, placed in a directory along with its Makefile for compiling it and a file
description.html which describes the index including a simple example of use.
<h2>REFERENCES</h2>
McGarigal, K., and B. J. Marks. 1995. FRAGSTATS: spatial pattern
analysis program for quantifying landscape structure. USDA For. Serv.
Gen. Tech. Rep. PNW-351 (<a href="http://www.fs.fed.us/pnw/pubs/gtr_351.pdf">PDF</a>).
<h2>AUTHORS</h2>
<a href="mailto:porta@cli.di.unipi.it">Claudio Porta</a> and
<a href="mailto:spano@cli.di.unipi.it">Lucio Davide Spano</a>, students of Computer Science
University of Pisa (Italy). <br>
Commission from Faunalia Pontedera (PI)<br>
<p>
<i>Last changed: $Date: 2011-11-08 03:29:50 -0800 (Tue, 08 Nov 2011) $</i>
<hr>
<p>
<a href="index.html">Main index</a> - <a href="raster.html">raster index</a>
- <a href="full_index.html">Full index</a>
</body>
</html>
|