r.resample(1)
β¨ r.resample β¨
okay bestie, welcome to r.resample(1) from the GRASS GIS User's Manual β this is the lil glow-up your raster data has been waiting for π
πΈ NAME πΈ
r.resample β GRASS raster map layer data resampling capability. that's the whole vibe. resample. slay.
π KEYWORDS π
raster, resample, nearest neighbor β yes queen, it's giving raster, it's giving nearest neighbor, no cap β¨
π¦ SYNOPSIS π¦
r.resample
r.resample --help
r.resample input=string output=string [--overwrite] [--help]
[--verbose] [--quiet] [--ui]
π Flags
--overwriteβ allow output files to overwrite existing files. like, permission to be a little destructive. use with intention fr fr π--helpβ print usage summary. the classic "help me i'm lost" button π«Ά--verboseβ verbose module output. it tells you everything, main character energy π£οΈ--quietβ quiet module output. shhh. no thoughts, just results π€«--uiβ force launching GUI dialog. for when you want the pretty buttons π
π Parameters
input=string[required] β name of an input layer. mandatory, bestie. no input, no party πoutput=string[required] β name of an output layer. also mandatory. it needs somewhere to live π
π DESCRIPTION π
okay so here's the tea β β r.resample resamples the data values in a user-specified raster input map layer name (bounded by the current geographic region and masked by the current mask), and it produces a new raster output map layer name containing the results of the resampling. that's it, that's the whole plot β¨
the category values in the new raster output map layer will be the same as those in the original β no rewriting the lore β except that the resolution and extent of the new raster output map layer will match those of the current geographic region settings (see g.region). so the values stay iconic, the geometry gets a makeover π
r.resample is intended for resampling of discrete raster data (such as land cover, geology or soil type) to a different resolution.
continuous data (such as elevation or temperature) usually require reinterpolation when changing resolution, see r.resamp.interp. so don't use this one for that, i'm serious π¨
π NOTES π
the method by which resampling is conducted is "nearest neighbor" (see r.neighbors). the resulting raster map layer will have the same resolution as the resolution of the current geographic region (set using g.region). periodt.
the resulting raster map layer may be identical to the original raster map layer. like, sometimes nothing changes and that's valid π¦
the r.resample program will copy the color table and history file associated with the original raster map layer for the resulting raster map layer, and will create a modified category file which contains description of only those categories which appear in resampled file. so it keeps the receipts, but only the relevant ones πβ¨
when the user resamples a GRASS reclass file, a true raster map is created by r.resample. glow-up complete, she's real now π
π SEE ALSO π
g.regionr.mapcalcr.mfilterr.neighborsr.rescaler.resamp.interp
Overview: Interpolation and Resampling in GRASS GIS π
πΈ AUTHOR πΈ
Michael Shapiro, U.S.Army Construction Engineering Research Laboratory π«‘ respect to the legend.
π SOURCE CODE π
Available at: r.resample 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 a wrap bestie π this page lives in GRASS GIS 8.4.2 Reference Manual, Β© 2003-2025 GRASS Development Team, and it's the GRASS 8.4.2 era β accessed Saturday Jan 17 05:40:58 2026. r.resample(1) out. slay, hydrate, and always check your region first β¨π¦π
π¦ 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