wxGUI.rlisetup(1)
π¦ wxGUI RLi Setup π¦
okay bestie, this is the wxGUI.rlisetup(1) page from the GRASS GIS User's Manual, and honestly? it's giving wizard energy β¨ it's the manual page for the setup GUI that feeds all the r.li analysis modules, so if you've ever been like "how do I even make a config file for this landscape-ecology stuff", this is the page π
β¨ DESCRIPTION β¨
The g.gui.rlisetup is a wxGUI component, and what it does is let you create a configuration file for the analytical r.li modules π For the big-picture intro, go look at the r.li overview.
Here's the part that's lowkey iconic: the configurations are raster map independent. That means a file you made on one raster map? You can use it to analyze literally any other one. No cap π«Ά
The program is completely interactive and uses a GUI to help you make your choices, so you're not out here memorizing flags, you're clicking buttons like a main character π
πΈ Analysis methods πΈ
Definition of creation of sampling area:
- Whole map layer: use entire area selected above,
- Regions: select one to many subareas via mouse,
- Sample units: automated selection of sampling area (for details see below)
- Random nonoverlapping,
- Systematic contiguous,
- Systematic noncontiguous,
- Stratified random,
- Centered over sites (vector points).
- Moving window: rectangular or circular with size
Definition of region for analysis:
- Whole map layer: entire map (current region),
- Keyboard setting: based on keyboard selection for region definition,
- Draw the sampling frame: based on interactive region selection via mouse.
π Usage details π
The startup window shows your configuration files, and you can:
TODO: description below needs further updates
- View/Edit (Load a file) from the shown list: the configuration is shown in a small text editor window. Configuration files are saved in the folder
C:\Users\userxy\AppData\Roaming\GRASS8\r.li\(MS-Windows) or$HOME/.r.li/(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 folderC:\Users\userxy\AppData\Roaming\GRASS8\r.li\output\(MS-Windows) or$HOME/.grass8/r.li/output/(GNU/Linux). All dimensions are percentages of raster rows or columns. - Create a new configuration file: used for creating a new configuration file in an interactive way, in three steps:
2.1 Choose file name and maps to use for setting:
- Name for new configuration file(required): the name of new configuration file
- Raster map name to use to select areas (required): the name of raster map used for selecting sampling areas
- Vector map to overlay (optional): name of a vector map used for selecting sampling areas
2.2 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:
- Whole map layer: the sample frame is the whole map
- Keyboard setting: the user enters the coordinates in cells of upper left corner of sampling frame and its length in rows and columns.
- Draw the sample frame: the user draws the sample frame on map using mouse.
2.3 Set the sample areas. The sample areas are simply the areas to analyze. They can be defined in five ways (see the picture below):
- Whole map layer: the sample area is the whole sample frame
- Regions: the user enters the number of areas and then draws them using mouse.
- Sample units: they are areas of rectangular or circular shape. The user can define them using keyboard or mouse.
- keyboard: the user define the shape of sample units and their disposition:
- Random non overlapping: 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.
- Systematic contiguous: the defined sample is placed covering the sample frame, side by side across rows.
- Systematic non contiguous: the same as above, but here every rectangle is spaced from another by a specified number of cells.
- Stratified random: 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 number of sample areas are placed in a random way, one for every m*n areas defined by strats.
- Centered over sites: the sample areas are placed into sample frame centering them on points in site file.
- mouse: the user chooses the shape and then draws the specified number of sample areas on map.
- keyboard: the user define the shape of sample units and their disposition:
- Moving Window: 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.
- Select areas from the overlaid vector map: 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.
- Remove a file β the selected file is deleted from the available configuration files.
- Help: open this help text.
- Close module window.
π NOTES π
Configuration files are raster map independent because areas are saved using relative coordinates. slay β¨
Screenshots of the wizard window frames:
g.gui.rlisetup: First frame of wizard for selecting existing configuration files or creating a new oneg.gui.rlisetup: Frame for selecting mapsg.gui.rlisetup: Frame for inserting sampling areasg.gui.rlisetup: Frame for defining rectangular moving windowg.gui.rlisetup: Frame for defining circular moving windowg.gui.rlisetup: Frame for choosing the sampling frame with keyboardg.gui.rlisetup: Frame for drawing the sampling frameg.gui.rlisetup: Summary frame before saving
π EXAMPLES π
π Moving window analysis on full region
TODO: update examples to new g.gui.rlisetup dialog:
Example for a 7x7 moving window analysis on full region, the output is a raster map:
Click on "New", then:
- Configuration file name:
"movwindow7" - Raster map name to use to select areas:
"forests"
- Setup sampling frame:
- Define a sampling frame (region for analysis):
"Whole map layer", then"OK"
- Define a sampling frame (region for analysis):
- Setup sampling frame
- Define sampling areas:
"Moving window", then"OK" - Then click on
"Use keyboard to define moving window dimension"
- Define sampling areas:
Select type of shape:
[x]Rectangular- Width size (in cells)?:
"7" - Height size (in cells)?:
"7" - Then
"Save settings"
- Save settings: click on button
(4.) Close
Now an anaysis can be performed using one of the analytical modules, e.g.
g.region raster=forests -p
r.li.patchdensity input=forests conf=movwindow7 output=forests_p_dens7
r.univar forests_p_dens7
The result is the new raster map "forests_p_dens7" which shows (in this example) the patch density of the forest areas.
See the respective modules for further examples.
π Whole region analysis
Example for a whole region analysis, the output is a text file: Click on "New", then:
- Configuration file name:
"whole_region" - Raster map name to use to select areas:
"lsat7_2000_40"
- Setup sampling frame:
- Define a sampling frame (region for analysis):
"Whole map layer", then"OK"
- Define a sampling frame (region for analysis):
- Setup sampling frame
- Define sampling areas:
"Whole map layer", then"OK"
- Define sampling areas:
- Save settings: click on button
(4.) Close
Now an anaysis can be performed using one of the analytical modules, e.g.
g.region raster=lsat7_2002_40 -p
r.li.shannon input=lsat7_2000_40 conf=whole_region output=lsat7_2000_40_shannon
The result is the new text file "forests_p_dens7" (stored in folder $HOME/.r.li/output/.
See the respective modules for further examples.
β REFERENCES β
McGarigal, K., and B. J. Marks. 1995. FRAGSTATS: spatial pattern analysis program for quantifying landscape structure. USDA For. Serv. Gen. Tech. Rep. PNW-351. (PDF)
π SEE ALSO π
- r.li - package overview,
r.li.daemon - Old r.le suite manual (1992)
- wxGUI, wxGUI components
π§ AUTHORS π§
- Luca Delucchi
- Rewritten from
r.li.setupby Claudio Porta and Lucio Davide Spano
π SOURCE CODE π
Available at: wxGUI RLi Setup source code (history)
Accessed: Saturday Jan 17 05:42:35 2026
Main index | GUI index | Topics index | Keywords index | Graphical index | Full index
and that's the whole page bestie, no skips, no cap π«Ά this was wxGUI.rlisetup(1) from GRASS 8.4.2, Β© 2003-2025 GRASS Development Team, GRASS GIS 8.4.2 Reference Manual β go make some config files, you got this π
β¨
π¦ where this page comes from
- fedora 44: grass 8.4.2-4.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms