|
@@ -1,7 +1,7 @@
|
|
|
<h2>DESCRIPTION</h2>
|
|
|
|
|
|
<em>r.li.setup</em> creates and shows configuration files for the
|
|
|
-others r.li programs. For a general introduction, see
|
|
|
+others <em>r.li</em> modules. For a general introduction, see
|
|
|
<a href="r.li.html">r.li</a>.
|
|
|
<br>
|
|
|
The configurations are raster map independent,
|
|
@@ -14,25 +14,27 @@ in your choices.
|
|
|
|
|
|
Definition of region for analysis:
|
|
|
<ul>
|
|
|
-<li> Whole map layer: entire map (current region),
|
|
|
-<li> Keyboard setting: based on keyboard selection for region definition,
|
|
|
-<li> Draw the sampling frame: based on interactive region selection via mouse.
|
|
|
+ <li> Whole map layer: entire map (current region),</li>
|
|
|
+ <li> Keyboard setting: based on keyboard selection for region definition,</li>
|
|
|
+ <li> Draw the sampling frame: based on interactive region selection via mouse.</li>
|
|
|
</ul>
|
|
|
|
|
|
Definition of creation of sampling area:
|
|
|
<ul>
|
|
|
-<li> Whole map layer: use entire area selected above,
|
|
|
-<li> Regions: select one to many subareas via mouse,
|
|
|
-<li> Sample units: automated selection of sampling area (for details see below)
|
|
|
-<ul>
|
|
|
- <li> Random nonoverlapping,
|
|
|
- <li> Systematic contiguous,
|
|
|
- <li> Systematic noncontiguous,
|
|
|
- <li> Stratified random,
|
|
|
- <li> Centered over sites (vector points).
|
|
|
-</ul>
|
|
|
-<li> Moving window: rectagular or circular with size
|
|
|
-<li> Select areas from the overlaid vector map (for details see below)
|
|
|
+ <li> Whole map layer: use entire area selected above,</li>
|
|
|
+ <li> Regions: select one to many subareas via mouse,</li>
|
|
|
+ <li> Sample units: automated selection of sampling area (for details see below)</li>
|
|
|
+
|
|
|
+ <ul>
|
|
|
+ <li> Random nonoverlapping,</li>
|
|
|
+ <li> Systematic contiguous,</li>
|
|
|
+ <li> Systematic noncontiguous,</li>
|
|
|
+ <li> Stratified random,</li>
|
|
|
+ <li> Centered over sites (vector points).</li>
|
|
|
+ </ul>
|
|
|
+
|
|
|
+ <li> Moving window: rectangular or circular with size</li>
|
|
|
+ <li> Select areas from the overlaid vector map (for details see below)</li>
|
|
|
</ul>
|
|
|
|
|
|
<img src="sampleAreas.jpg" alt="Sampling area definition">
|
|
@@ -41,110 +43,180 @@ Definition of creation of sampling area:
|
|
|
<h3>Usage details</h3>
|
|
|
|
|
|
The startup window shows your configuration files, you can:
|
|
|
+
|
|
|
<ol>
|
|
|
<li><em><b>Load a file</b></em>: the configuration is printed using
|
|
|
-rectangles with differents colors (green for the raster map,
|
|
|
-red for the sample
|
|
|
-frame and blue for the sample areas), and other notes (disposition of
|
|
|
-sample areas etc).
|
|
|
-The configuration file is saved in <tt>~/.grass7/r.li/my_conf</tt>
|
|
|
-(the file name can be defined by the user).
|
|
|
-<!-- NOT REALLY CLEAR: -->
|
|
|
-Configuration output files are raster if moving window disposition was
|
|
|
-selected, otherwise they are in <tt>~/.grass7/r.li/output</tt> folder.
|
|
|
-<br>
|
|
|
-All dimension are percentage of raster rows or columns.
|
|
|
-<li><em><b>Create a new file:</b></em> this create a new configuration
|
|
|
-file in an interactive way, in three steps
|
|
|
- <ol>
|
|
|
- <li> Choose file name and maps to use for setting:
|
|
|
- <ul>
|
|
|
+ rectangles with differents colors (green for the raster map, red for
|
|
|
+ the sample frame and blue for the sample areas), and other notes
|
|
|
+ (disposition of sample areas etc). The configuration file is saved
|
|
|
+ in <tt>~/.r.li/history/my_conf</tt> (the file name can be defined by
|
|
|
+ the user). The output can either be a new raster map (in case of
|
|
|
+ using a "moving window" analysis) or be an ASCII text file (when not
|
|
|
+ performing a "moving window" analysis) containing the result which
|
|
|
+ is then saved to the folder <tt>~/.grass7/r.li/output/</tt>.
|
|
|
+ <br>
|
|
|
+ <!-- TODO: applies to all output or only ASCII output?? -->
|
|
|
+ All dimensions are percentages of raster rows or columns.</li>
|
|
|
+
|
|
|
+ <li><em><b>Create a new file:</b></em> this create a new configuration
|
|
|
+ file in an interactive way, in three steps:</li>
|
|
|
+
|
|
|
+ <ol>
|
|
|
+ <li> Choose file name and maps to use for setting:</li>
|
|
|
+ <ul>
|
|
|
<li> <em>Configuration file name </em>(required): the name
|
|
|
- of new configuration file
|
|
|
- <li> <em>Raster map name</em> (required): the name of raster
|
|
|
- map to use for setting
|
|
|
+ of new configuration file</li>
|
|
|
+ <li> <em>Raster map name to use to select areas</em> (required): the name of raster
|
|
|
+ map to use for setting <!-- TODO: ... map to be analysed?? --></li>
|
|
|
<li> <em>Vector areas map to overlay</em> (optional): name of a vector
|
|
|
- map to overlay in setting
|
|
|
+ map to overlay in setting</li>
|
|
|
<li> <em>Vector points map to overlay</em> (optional): name of vector map
|
|
|
- of points type to overlay in setting
|
|
|
- </ul>
|
|
|
+ of points type to overlay in setting</li>
|
|
|
+ </ul>
|
|
|
+
|
|
|
<li> Set the sampling frame. The sample frame is a rectangular area
|
|
|
which contains all the areas to analyze. It can be defined in three
|
|
|
- ways:
|
|
|
- <ul>
|
|
|
- <li><em>Whole map layer</em>: the sample frame is the whole map
|
|
|
- <li><em>Keyboard setting</em>: the user enters the coordinates in
|
|
|
- cells of upper left corner of sampling frame and its length in
|
|
|
- rows and columns.
|
|
|
- <li><em>Draw the sample frame</em>: the user draws the sample frame
|
|
|
- on map using mouse.
|
|
|
- </ul>
|
|
|
+ ways: </li>
|
|
|
+ <ul>
|
|
|
+ <li><em>Whole map layer</em>: the sample frame is the whole map</li>
|
|
|
+ <li><em>Keyboard setting</em>: the user enters the coordinates in
|
|
|
+ cells of upper left corner of sampling frame and its length in
|
|
|
+ rows and columns.</li>
|
|
|
+ <li><em>Draw the sample frame</em>: the user draws the sample frame
|
|
|
+ on map using mouse.</li>
|
|
|
+ </ul>
|
|
|
+
|
|
|
<li> Set the sample areas. The sample areas are simply the areas to
|
|
|
- analyze. They can be defined in five ways (see the picture below):
|
|
|
- <ul>
|
|
|
+ analyze. They can be defined in five ways (see the picture below):</li>
|
|
|
+ <ul>
|
|
|
<li><em>Whole map layer</em>: the sample area is the whole sample
|
|
|
- frame
|
|
|
+ frame</li>
|
|
|
<li><em>Regions</em>: the user enters the number of areas and then
|
|
|
- draws them using mouse.
|
|
|
+ draws them using mouse.</li>
|
|
|
<li><em>Sample units</em>: they are areas of rectangular or circular
|
|
|
- shape. The user can define them using keyboard or mouse.
|
|
|
- <ul>
|
|
|
+ shape. The user can define them using keyboard or mouse.</li>
|
|
|
+
|
|
|
+ <ul>
|
|
|
<li>keyboard: the user define the shape of sample unists and
|
|
|
- their disposition:
|
|
|
+ their disposition:</li>
|
|
|
<ul>
|
|
|
- <li><em>Random non overlapping</em>: the user specifies
|
|
|
+ <li><em>Random non overlapping</em>: the user specifies
|
|
|
the number of sample units and they are placed in a
|
|
|
- random way at runtime. It is guaranted that the
|
|
|
- areas do not intersect themselfs.
|
|
|
- <li><em>Systematic contiguous</em>: the defined sample
|
|
|
+ random way at runtime. It is guaranteed that the
|
|
|
+ areas do not intersect themselves.</li>
|
|
|
+ <li><em>Systematic contiguous</em>: the defined sample
|
|
|
is placed covering the sample frame, side by side
|
|
|
- across rows.
|
|
|
- <li><em>Systematic non contiguous</em>: the same as above,
|
|
|
+ across rows.</li>
|
|
|
+ <li><em>Systematic non contiguous</em>: the same as above,
|
|
|
but here ever rectangle is spaced from another by
|
|
|
- a specified number of cells
|
|
|
- <li><em>Stratified random</em>: the sample frame is
|
|
|
- divided in n strats of rows and m strats of columns
|
|
|
- (n and m are given by user), then the specified
|
|
|
+ a specified number of cells.</li>
|
|
|
+ <li><em>Stratified random</em>: the sample frame is
|
|
|
+ divided in <i>n</i> strats of rows and <i>m</i> strats of columns
|
|
|
+ (<i>n</i> and <i>m</i> are given by user), then the specified
|
|
|
number of sample areas are placed in a random way,
|
|
|
- one for every m*n areas defined by strats.
|
|
|
- <li><em>Centered over sites</em>: the sample areas
|
|
|
+ one for every <i>m*n</i> areas defined by strats.</li>
|
|
|
+ <li><em>Centered over sites</em>: the sample areas
|
|
|
are placed into sample frame centering them on points
|
|
|
- in site file.
|
|
|
+ in site file.</li>
|
|
|
</ul>
|
|
|
<li>mouse: the user chooses the shape and then draws the
|
|
|
- specified number of sample areas on map.
|
|
|
- </ul>
|
|
|
- </ul>
|
|
|
- <li><em>Moving Window:</em> the user defines a rectangular or
|
|
|
+ specified number of sample areas on map.</li>
|
|
|
+ </ul>
|
|
|
+
|
|
|
+ <li><em>Moving Window:</em> the user defines a rectangular or
|
|
|
circular area, it is moved over all the raster increasing only
|
|
|
of a cell for every move(in columns if possible, if not in rows).
|
|
|
- It produces a new raster containing the result of all analysis.
|
|
|
- <li><em>Select areas from the overlaid vector map</em>:
|
|
|
+ It produces a new raster containing the result of all analysis.</li>
|
|
|
+ <li><em>Select areas from the overlaid vector map</em>:
|
|
|
the sample areas are defined by the vector map selected above.
|
|
|
For every cat in vector map, the procedure prompts the
|
|
|
user if he wants to include it as sample area.
|
|
|
The resulting configuration file can be used only with the
|
|
|
specified raster map, and the procedure can be used only if
|
|
|
- whole map layer is selected as sampling frame.
|
|
|
+ whole map layer is selected as sampling frame.</li>
|
|
|
+ </ul>
|
|
|
</ol>
|
|
|
-<li><em><b>Remove a file</b></em> the selected file is deleted from the
|
|
|
-available configuration files.
|
|
|
-<li><em><b>Help</b></em>: open this help text.
|
|
|
-<li><em><b>Close</b></em> module window.
|
|
|
+
|
|
|
+ <li><em><b>Remove a file</b></em> the selected file is deleted from the
|
|
|
+ available configuration files.</li>
|
|
|
+ <li><em><b>Help</b></em>: open this help text.</li>
|
|
|
+ <li><em><b>Close</b></em> module window.</li>
|
|
|
</ol>
|
|
|
|
|
|
+<h2>EXAMPLES</h2>
|
|
|
+
|
|
|
+<h3>Moving window analysis on full region</h3>
|
|
|
+
|
|
|
+Example for a 7x7 moving window analysis on full region:
|
|
|
+
|
|
|
+<ul>
|
|
|
+<li> Click on "New"</li>
|
|
|
+ <ul>
|
|
|
+ <li> Configuration file name: "movwindow7"</li>
|
|
|
+ <li> Raster map name to use to select areas: "forests"</li>
|
|
|
+ </ul>
|
|
|
+</ul>
|
|
|
+
|
|
|
+1. Setup sampling frame:
|
|
|
+<ul>
|
|
|
+<li> Define a sampling frame (region for analysis): "Whole map layer", then "OK"</li>
|
|
|
+</ul>
|
|
|
+
|
|
|
+2. Setup sampling frame
|
|
|
+<ul>
|
|
|
+<li> Define sampling areas: "Moving window", then "OK"</li>
|
|
|
+<li> Then click on "Use keyboard to define moving window dimension"</li>
|
|
|
+<ul>
|
|
|
+ <li>Select type of shape</li>
|
|
|
+ <ul>
|
|
|
+ <li> [x] Rectangular</li>
|
|
|
+ <li> Width size (in cells)?: "7"</li>
|
|
|
+ <li> Height size (in cells)?: "7"</li>
|
|
|
+ <li> Then "Save settings"</li>
|
|
|
+ </ul>
|
|
|
+ </ul>
|
|
|
+</ul>
|
|
|
+
|
|
|
+3. Save settings: click on button
|
|
|
+<br>
|
|
|
+(4.) Close
|
|
|
+<p>
|
|
|
+Now an anaysis can be performed using one of the analytical modules, e.g.
|
|
|
+<div class="code"><pre>
|
|
|
+r.li.patchdensity input=forests conf=movwindow7 output=forests_p_dens7
|
|
|
+</pre></div>
|
|
|
+
|
|
|
+The result is a new raster map "forests_p_dens7".
|
|
|
+<br>
|
|
|
+See the respective modules for further examples.
|
|
|
+
|
|
|
+<!-- TODO: add configuration example which results in ASCII output rather than raster map -->
|
|
|
+
|
|
|
<h2>NOTES</h2>
|
|
|
+
|
|
|
Configuration files are raster map independent because areas are saved using
|
|
|
relative coordinates.
|
|
|
|
|
|
+
|
|
|
<h2>SEE ALSO</h2>
|
|
|
-<em><a href="http://grass.osgeo.org/gdp/landscape/r_le_manual5.pdf">old r.le manual</a></em><br>
|
|
|
-<em><a href="r.li.html">r.li</a></em> package overview <br>
|
|
|
-<em><a href="r.li.daemon.html">r.li.daemon</a></em>,
|
|
|
-<em><a href="r.li.patchdensity.html">r.li.patchdensity</a></em>
|
|
|
+
|
|
|
+<em>
|
|
|
+<a href="r.li.html">r.li</a> - package overview<br>
|
|
|
+<a href="r.li.daemon.html">r.li.daemon</a>
|
|
|
+</em>
|
|
|
+<p>
|
|
|
+<em>
|
|
|
+<a href="http://grass.osgeo.org/gdp/landscape/r_le_manual5.pdf">Old r.le suite manual</a>
|
|
|
+</em>
|
|
|
+
|
|
|
+<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://treesearch.fs.fed.us/pubs/3064">PDF</a>)
|
|
|
|
|
|
<h2>AUTHORS</h2>
|
|
|
-Claudio Porta and Lucio Davide Spano, students of Computer Science
|
|
|
+
|
|
|
+Claudio Porta and Lucio Davide Spano, students of Computer Science<br>
|
|
|
University of Pisa (Italy).<br>
|
|
|
Commission from Faunalia Pontedera (PI)<br>
|
|
|
Rebuild of <em>r.le.setup</em> from William L. Baker
|