r.rescale.eq(1)
π r.rescale.eq π
okay bestie, welcome to the GRASS GIS User's Manual page for r.rescale.eq β she's a raster girlie and she is literally here to rescale your category values with an equalized histogram. no cap. π¦
β¨ NAME β¨
r.rescale.eq β Rescales histogram equalized the range of category values in a raster map layer. π
π KEYWORDS π
raster, rescale
πΈ SYNOPSIS πΈ
r.rescale.eq
r.rescale.eq --help
r.rescale.eq input=name [from=min,max] output=name to=min,max
[title=phrase] [--overwrite] [--help] [--verbose] [--quiet] [--ui]
π Flags π
--overwriteβ lets your output files just go ahead and overwrite files that already exist, periodt. π--helpβ prints the usage summary so you know what's up.--verboseβ verbose module output, she's talking more now. π£οΈ--quietβ quiet module output, she's giving mysterious silence. π€«--uiβ forces the GUI dialog to launch, main character energy only. π
π§ Parameters π§
input=name[required] β the name of the raster map that's getting rescaled. you have to give her this one.from=min,maxβ the input data range you wanna rescale (default: the full range of the input map, she'll figure it out herself).output=name[required] β the resulting raster map name. yes queen, name your baby.to=min,max[required] β the output data range.title=phraseβ title for the new raster map, a lil label moment. π·οΈ
π¦ DESCRIPTION π¦
so the r.rescale.eq program rescales the range of category values that appear in a raster map layer β and it does it with an equalized histogram. it's giving glow-up but mathematically correct. β¨
a new raster map layer gets generated, plus an appropriate category file and a color table based on the original raster map layer, with category labels that reflect the original category values that produced each category. the way that it just... remembers where you came from? iconic. π
this command is useful for producing representations with a reduced number of categories from a raster map layer that has a large range of category values (e.g., elevation). think of it like compressing a whole vibe into a smaller, cuter vibe. π
rescaled map layers are appropriate for use in such GRASS GIS commands as r.stats, r.report, and r.coin. they'll slay in there, fr fr.
π EXAMPLE π
say you wanna rescale an elevation raster map layer with category values ranging from 1090 meters to 1800 meters into the range 0-255. the following command line could be used (and heads up bestie β without the from parameter, the full value range will be used):
r.rescale.eq input=elevation from=1090,1800 output=elevation.255 to=0,255
ate. no crumbs. π
π NOTES π
okay this part matters so listen up:
- category values that fall beyond the input range will become NULL. not a vibe, but that's the deal.
- this allows the user to select a subset of the full category value range for rescaling if they want to.
- this also means the user should know the category value range for the input raster map layer. like, do your homework first. π
- the user can request the
r.rescale.eqprogram to determine this range, or can obtain it using ther.describeorr.infocommand. - if the category value range is determined using
r.rescale.eq, the input raster map layer is examined, and the minimum and maximum non-NULL category values are selected as the input range. she does the detective work herself. π
ngl, if you don't know your input range and you don't let her find it, things can get weird. let her cook. π«Ά
β SEE ALSO β
r.coin, r.describe, r.info, r.mapcalc, r.reclass, r.rescale, r.report, r.resample, r.stats
the whole friend group, honestly. π
π AUTHOR π
Michael Shapiro, U.S.Army Construction Engineering Research Laboratory
π SOURCE CODE π
Available at: r.rescale.eq source code (history)
Accessed: Saturday Jan 17 05:40:58 2026
Main index | Raster index | Topics index | Keywords index | Graphical index | Full index
and that's the whole page bestie!! π this was pulled from the GRASS GIS 8.4.2 Reference Manual, Β© 2003-2025 GRASS Development Team, and the version tag on the bottom of the original was GRASS 8.4.2, under the name r.rescale.eq(1). go rescale something gorgeous. πβ¨π¦πΈ
π¦ 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