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