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.region
  • r.mapcalc
  • r.mfilter
  • r.neighbors
  • r.rescale
  • r.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