r.resample(1grass)
π r.resample β the manual, but make it make sense π
okay bestie, so this is r.resample from the GRASS User's Manual, and literally all it does is resample raster map layer data. that's the whole vibe. let me walk you through it π«Ά
β¨ NAME β¨
r.resample β GRASS raster map layer data resampling capability. that's it, that's the girl π
π·οΈ KEYWORDS π·οΈ
raster, resample, nearest neighbor
πΈ SYNOPSIS πΈ
r.resample
r.resample --help
r.resample input=string output=string [--overwrite] [--help]
[--verbose] [--quiet] [--ui]
π Flags
--overwriteβ let your output files just... overwrite existing files. bold move, iconic, but bestie be careful π--helpβ prints the usage summary. your little cheat sheet π--verboseβ verbose module output, aka it tells you EVERYTHING that's happening, main character narration energy--quietβ quiet module output. shhh. no thoughts, just vibes π€«--uiβ force launching the GUI dialog, for when you want the pretty buttons
π¦ Parameters
input=string[required] β name of an input layer. you gotta give her something to work with.output=string[required] β name of an output layer. and you gotta name the result, no nameless babies here β¨
π DESCRIPTION π
so here's the tea, bestie. r.resample resamples the data values in a user-specified raster input map layer name β and she's bounded by the current geographic region and masked by the current mask π β and she produces a whole new raster output map layer name containing the results of the resampling. slay.
the category values in the new raster output map layer will be the same as those in the original, 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). it's giving "same girl, new outfit" π
now, important: r.resample is intended for resampling of discrete raster data β think land cover, geology, or soil type π β to a different resolution.
continuous data (like elevation or temperature) usually require reinterpolation when changing resolution. for that you want r.resamp.interp, okay? different girl, different job. don't mix them up π
π§ 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 β the one you set using g.region, iykyk.
the resulting raster map layer may be identical to the original raster map layer. not a bug, sometimes that's just how it is π
the r.resample program will copy the color table and history file associated with the original raster map layer over to the resulting raster map layer, and will create a modified category file which contains description of only those categories which appear in the resampled file. thoughtful queen, she curates β¨
when the user resamples a GRASS reclass file, a true raster map is created by r.resample. periodt.
π₯ SEE ALSO π₯
g.regionr.mapcalcr.mfilterr.neighborsr.rescaler.resamp.interp- Overview: Interpolation and Resampling in GRASS
π AUTHOR π
Michael Shapiro, U.S.Army Construction Engineering Research Laboratory. thank you for your service legend π«Ά
β SOURCE CODE β
Available at: r.resample source code (history)
Latest change: Friday Aug 08 09:39:19 2025 in commit: ed72c71d8580e872cd6fd345c84a15c324764465
Main index | Raster index | Topics index | Keywords index | Graphical index | Full index
Β© 2003-2026 GRASS Development Team, GRASS 8.5.0 Reference Manual
and that's the whole page bestie!! π this was GRASS 8.5.0, r.resample(1grass), dated with that Friday Aug 08 09:39:19 2025 commit energy β go resample something gorgeous πΈπ¦β¨
π¦ where this page comes from
- alpine 3.24: grass-gis-doc 8.5.0-r1 Β· GPL-2.0-or-later
- ubuntu stonking: grass-doc 8.5.0-1ubuntu1 Β· 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