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 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347
|
<!-- meta page description: wxGUI RLi Setup -->
<!-- meta page index: topic_GUI|GUI -->
<h2>DESCRIPTION</h2>
The <b>g.gui.rlisetup</b> is a <em><a href="wxGUI.html">wxGUI</a></em>
component which allows the user to create a configuration file
for the analytical <em>r.li</em> modules. For a general introduction, see
the <a href="r.li.html">r.li</a> overview.
<br>
The configurations are raster map independent, it means that you can use
a file created on a raster map for analyze any other you have.
<br>
The program is completely interactive and uses a GUI to help you
in your choices.
<h3>Analysis methods</h3>
Definition of creation of sampling area:
<ul>
<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)
<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>
<li> Moving window: rectangular or circular with size</li>
<!-- only in GRASS GIS 6 version
<li> Select areas from the overlaid vector map (for details see below)</li>
-->
</ul>
<img src="g_gui_rlisetup_sample_areas.png" alt="Sampling area definitions">
<p>
Definition of region for analysis:
<ul>
<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>
<h3>Usage details</h3>
The startup window shows your configuration files, you can:
<p>
<font color="red"><b>TODO: description below needs further updates</b></font>
<p>
<ol>
<li><em><b>View/Edit</b></em> (Load a file) from the shown list: the
configuration is shown in a small text editor window.
<!-- only in GRASS GIS 6 version
is printed using rectangles with different 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).
-->
Configuration files are saved in the folder
<code>C:\Users\userxy\AppData\Roaming\GRASS8\r.li\</code> (MS-Windows) or
<code>$HOME/.r.li/</code> (GNU/Linux) (the file name can be
defined by the user). The output or an analysis 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.
Such text file will be saved in the folder
<code>C:\Users\userxy\AppData\Roaming\GRASS8\r.li\output\</code>
(MS-Windows) or <code>$HOME/.grass8/r.li/output/</code> (GNU/Linux).
<br>
<!-- TODO: applies to all output or only ASCII output?? -->
All dimensions are percentages of raster rows or columns.</li>
<li><em><b>Create</b></em> a new configuration file: used for creating
a new configuration file in an interactive way, in three steps:
<ol>
<li> Choose file name and maps to use for setting:
<ul>
<li> <em>Name for new configuration file</em>(required): the name
of new configuration file</li>
<li> <em>Raster map name to use to select areas</em> (required):
the name of raster map used for selecting sampling areas</li>
<li> <em>Vector map to overlay</em> (optional): name of a
vector map used for selecting sampling areas</li>
</ul>
</li>
<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>
<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>
<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>
<li><em>Whole map layer</em>: the sample area is the whole sample
frame</li>
<li><em>Regions</em>: the user enters the number of areas and then
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>
<li>keyboard: the user define the shape of sample unists and
their disposition:
<ul>
<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 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>
<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>
<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 <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.</li>
</ul>
</li>
<li>mouse: the user chooses the shape and then draws the
specified number of sample areas on map.</li>
</ul>
</li>
<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>
<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 they want 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.</li>
</ul>
</li>
</ol>
<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>NOTES</h2>
Configuration files are raster map independent because areas are saved using
relative coordinates.
<p>
Screenshots of the wizard window frames:
<center>
<table border="0">
<tr>
<td align=center>
<img src="g_gui_rlisetup_1.png" alt="g.gui.rlisetup: First frame of wizard for selecting existing configuration files or creating a new one">
<br>
<font size="-1">
<i>g.gui.rlisetup: First frame of wizard for selecting <br>
existing configuration files or creating a new one</i>
</font>
</td>
<td align=center>
<img src="g_gui_rlisetup_2.png" alt="g.gui.rlisetup: Frame for selecting maps">
<br>
<font size="-1">
<i>g.gui.rlisetup: Frame for selecting maps</i>
</font>
</td>
</tr>
<tr>
<td align=center>
<img src="g_gui_rlisetup_3.png" alt="g.gui.rlisetup: Frame for inserting sampling areas">
<br>
<font size="-1">
<i>g.gui.rlisetup: Frame for inserting sampling areas</i>
</font>
</td>
<td align=center>
<img src="g_gui_rlisetup_4.png" alt="g.gui.rlisetup: Frame for defining rectangular moving window">
<br>
<font size="-1">
<i>g.gui.rlisetup: Frame for defining rectangular moving window</i>
</font>
</td>
</tr>
<tr>
<td align=center>
<img src="g_gui_rlisetup_5.png" alt="g.gui.rlisetup: Frame for defining circular moving window">
<br>
<font size="-1">
<i>g.gui.rlisetup: Frame for defining circular moving window</i>
</font>
</td>
<td align=center>
<img src="g_gui_rlisetup_6.png" alt="g.gui.rlisetup: Frame for choosing the sampling frame with keyboard">
<br>
<font size="-1">
<i>g.gui.rlisetup: Frame for choosing the sampling frame with keyboard</i>
</font>
</td>
</tr>
<tr>
<td align=center>
<img src="g_gui_rlisetup_7.png" alt="g.gui.rlisetup: Frame for drawing the sampling frame">
<br>
<font size="-1">
<i>g.gui.rlisetup: Frame for drawing the sampling frame</i>
</font>
</td>
<td align=center>
<img src="g_gui_rlisetup_8.png" alt="g.gui.rlisetup: Summary frame before saving">
<br>
<font size="-1">
<i>g.gui.rlisetup: Summary frame before saving</i>
</font>
</td>
</tr>
</table>
</center>
<h2>EXAMPLES</h2>
<h3>Moving window analysis on full region</h3>
<i>TODO: update examples to new g.gui.rlisetup dialog:</i>
<p>
Example for a 7x7 moving window analysis on full region, the output
is a raster map:
<p>
Click on "New", then:
<ul>
<li> Configuration file name: "movwindow7"</li>
<li> Raster map name to use to select areas: "forests"</li>
</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>
Select type of shape:
<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>
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>
g.region raster=forests -p
r.li.patchdensity input=forests conf=movwindow7 output=forests_p_dens7
r.univar forests_p_dens7
</pre></div>
The result is the new raster map "forests_p_dens7" which shows (in this example)
the patch density of the forest areas.
<br>
See the respective modules for further examples.
<h3>Whole region analysis</h3>
<!-- TODO: find a better example and briefly explain the meaning of result -->
Example for a whole region analysis, the output is a text file:
Click on "New", then:
<ul>
<li> Configuration file name: "whole_region"</li>
<li> Raster map name to use to select areas: "lsat7_2000_40"</li>
</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: "Whole map layer", then "OK"</li>
</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>
g.region raster=lsat7_2002_40 -p
r.li.shannon input=lsat7_2000_40 conf=whole_region output=lsat7_2000_40_shannon
</pre></div>
The result is the new text file "forests_p_dens7" (stored in folder <code>$HOME/.r.li/output/</code>.
<br>
See the respective modules for further examples.
<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="https://doi.org/10.2737/PNW-GTR-351">PDF</a>)
<h2>SEE ALSO</h2>
<em>
<a href="r.li.html">r.li</a> - package overview,
<a href="r.li.daemon.html">r.li.daemon</a>
</em>
<p>
<em>
<a href="https://grass.osgeo.org/gdp/landscape/r_le_manual5.pdf">Old r.le suite manual</a> (1992)
</em>
<p>
<em>
<a href="wxGUI.html">wxGUI</a>,
<a href="wxGUI.components.html">wxGUI components</a>
</em>
<h2>AUTHORS</h2>
Luca Delucchi<br>
Rewritten from <em>r.li.setup</em> by Claudio Porta and Lucio Davide Spano
|