r.li.richness(1)
πΈ r.li.richness β the GRASS GIS User's Manual page, but make it make sense π
okay bestie, welcome to r.li.richness, one of the lil icons living in the r.li family (the landscape structure analysis crew β¨). She calculates a richness index on a raster map. That's the whole vibe.
KEYWORDS: raster, landscape structure analysis, diversity index π
β¨ SYNOPSIS β¨
r.li.richness
r.li.richness --help
r.li.richness input=name config=name output=name [--overwrite]
[--help] [--verbose] [--quiet] [--ui]
π«Ά Flags
--overwriteβ lets your output files just bulldoze over existing files. chaotic but permitted π--helpβ prints the usage summary, aka the "what do I even type" button--verboseβ verbose module output, she will tell you everything π--quietβ quiet module output, she will tell you nothing π€«--uiβ force-launches the GUI dialog, main character energy only
π Parameters
input=name[required] β name of input raster mapconfig=name[required] β configuration fileoutput=name[required] β name for output raster map
π DESCRIPTION π
r.li.richness calculates the "richness diversity index" as:
with:
- m: number of different patch types
(yeah the formula is just vibes and the letter m, that's what we're working with, no cap π¦)
π NOTES π
Do not use absolute path names for theconfigandoutputfile/map parameters. fr fr. just don't.
If the "moving window" method was selected in g.gui.rlisetup, then the output will be a raster map. Otherwise an ASCII file will be generated in the folder:
C:\Users\userxy\AppData\Roaming\GRASS8\r.li\output\ (MS-Windows)
or
$HOME/.grass8/r.li/output/ (GNU/Linux)
and if your input raster map contains only NULL values, then r.li.richness returns 0. that's it, that's the answer, zero, she said what she said π
π§ EXAMPLES π§
To calculate the richness diversity index on map my_map, using my_conf configuration file (previously defined with g.gui.rlisetup) and saving results in my_out, run:
r.li.richness input=my_map conf=my_conf output=my_out
Forest map (Spearfish sample dataset) example, obsessed with her:
g.region raster=landcover.30m -p
r.mapcalc "forests = if(landcover.30m >= 41 && landcover.30m <= 43,1,null())"
r.li.richness input=forests conf=movwindow7 out=forests_richness_mov7
r.univar forests_richness_mov7
Forest map (North Carolina sample dataset) example, the sequel π₯:
g.region raster=landclass96 -p
r.mapcalc "forests = if(landclass96 == 5, 1, null() )"
r.li.richness input=forests conf=movwindow7 out=forests_richness_mov7
# verify
r.univar forests_richness_mov7
r.to.vect input=forests output=forests type=area
d.mon wx0
d.rast forests_richness_mov7
d.vect forests type=boundary
π SEE ALSO π
r.liβ package overviewg.gui.rlisetup
π 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)
π AUTHORS π
- Serena Pallecchi, student of Computer Science University of Pisa (Italy).
- Commission from Faunalia Pontedera (PI), Italy (www.faunalia.it)
π» SOURCE CODE π»
Available at: r.li.richness source code (history)
Accessed: Saturday Jan 17 05:40:55 2026
Main index | Raster index | Topics index | Keywords index | Graphical index | Full index
Β© 2003-2025 GRASS Development Team, GRASS GIS 8.4.2 Reference Manual
and that's the whole page bestie β this was r.li.richness(1) from the GRASS 8.4.2 Reference Manual, accessed Saturday Jan 17 05:40:55 2026. go compute some richness, you ate π
β¨πΈ
π¦ 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