r.rescale(1)
β¨ r.rescale β GRASS GIS User's Manual β¨
okay bestie, welcome to the r.rescale(1) page π this is the GRASS GIS User's Manual entry, and we're gonna go through it together, no skipping, no skimming, we're eating the whole thing π
π NAME π
r.rescale β Rescales the range of category values in a raster map layer. π
πΈ KEYWORDS πΈ
raster, rescale
β¨ SYNOPSIS β¨
r.rescale
r.rescale --help
r.rescale input=name [from=min,max] output=name to=min,max
[title=phrase] [--overwrite] [--help] [--verbose] [--quiet] [--ui]
π¦ Flags:
--overwriteβ Allow output files to overwrite existing files π (yes she will absolutely bulldoze what's there, that's the whole point)--helpβ Print usage summary--verboseβ Verbose module output--quietβ Quiet module output π€«--uiβ Force launching GUI dialog
π Parameters:
input=name[required] β The name of the raster map to be rescaledfrom=min,maxβ The input data range to be rescaled (default: full range of input map)output=name[required] β The resulting raster map nameto=min,max[required] β The output data rangetitle=phraseβ Title for new raster map
π DESCRIPTION π
So the r.rescale program rescales the range of category values appearing in a raster map layer. It generates a new raster map layer, plus an appropriate category file and color table based upon the original raster map layer, and the category labels reflect the original category values that produced each category. β¨
This command is useful for producing representations with a reduced number of categories from a raster map layer with a large range of category values (e.g., elevation). Rescaled map layers are appropriate for use in such GRASS GIS commands as r.stats, r.report, and r.coin. π«Ά
π EXAMPLE π
To 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 (without the from parameter, the full value range will be used):
r.rescale input=elevation from=1090,1800 output=elevation.255 to=0,255
β NOTES β
Category values that fall beyond the input range will become NULL. π This allows the user to select a subset of the full category value range for rescaling if desired. This also means that the user should know the category value range for the input raster map layer β like, actually know it, bestie. π
The user can request the r.rescale program to determine this range, or can obtain it using the r.describe or r.info command. If the category value range is determined using r.rescale, the input raster map layer is examined, and the minimum and maximum non-NULL category values are selected as the input range. π
π₯ SEE ALSO π₯
r.coin, r.describe, r.info, r.mapcalc, r.reclass, r.rescale.eq, r.report, r.resample, r.stats, r.univar
π AUTHOR π
Michael Shapiro, U.S.Army Construction Engineering Research Laboratory
π¦ SOURCE CODE π¦
Available at: r.rescale source code (history)
Accessed: Saturday Jan 17 05:40:58 2026
Main index | Raster index | Topics index | Keywords index | Graphical index | Full index
okay that's the whole page, no cap π before you go β this was the GRASS GIS 8.4.2 Reference Manual, Β© 2003-2025 GRASS Development Team, accessed Saturday Jan 17 05:40:58 2026 πΈ you're doing amazing sweetie, go rescale something iconic π β¨
π¦ 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