r.series.interp(1grass)

πŸ’– r.series.interp β€” the manual, but make it make sense πŸ’–

aka r.series.interp from the GRASS User's Manual, bestie edition ✨

KEYWORDS: raster, series, interpolation


✨ NAME ✨

r.series.interp β€” she interpolates raster maps that live (temporally or spatially) in between your input raster maps, at the specific sampling positions you tell her about. That's the whole job. Iconic work ethic, honestly.


πŸ¦‹ SYNOPSIS πŸ¦‹

r.series.interp
r.series.interp --help
r.series.interp  [input=name[,name,...]]   [datapos=float[,float,...]]
[infile=name]   [output=name[,name,...]]
[samplingpos=float[,float,...]]   [outfile=name]   [method=string]
[--overwrite]  [--help]  [--verbose]  [--quiet]  [--ui]

πŸŽ€ Flags πŸŽ€

  • --overwrite β€” let your output files just bulldoze over whatever was already there. Say yes and she will not hesitate πŸ’…
  • --help β€” prints the usage summary so you're not out here guessing
  • --verbose β€” full verbose module output, the chatty version
  • --quiet β€” quiet mode, she says nothing extra, mysterious girl energy
  • --ui β€” forces the GUI dialog to launch, if that's your vibe

🌸 Parameters 🌸

  • input=name[,name,...] β€” the name(s) of your input raster map(s)
  • datapos=float[,float,...] β€” the data point position for each one of those input maps
  • infile=name β€” an input file holding one input raster map name plus its data point position per line; the field separator between the name and the sample point is |
  • output=name[,name,...] β€” the name for your output raster map(s)
  • samplingpos=float[,float,...] β€” the sampling point position for each output map
  • outfile=name β€” an input file with one output raster map name and sample point position per line; field separator between name and sample point is again |
  • method=string β€” the interpolation method. Currently only linear interpolation is supported, no cap. Options: linear Default: linear

🌈 DESCRIPTION 🌈

r.series.interp interpolates brand new raster maps that sit temporal or spatial in between existing raster maps. The interpolation happens at specific sampling positions. You have to specify the sampling position for each output map, and the data position of the input maps. Like, both. Both are required, bestie, don't skip one 😭

Here's what she supports:

  • linear: Linear interpolation. This one needs at least two input maps and data positions. Two minimum. It's giving "duo, not solo".

πŸ”₯ EXAMPLES πŸ”₯

Say you want to interpolate three whole new maps at 3 sampling positions in the interval (0.0;1.0). Bold. Love that for you.

First, prepare the input maps:

g.region s=0 n=80 w=0 e=120 b=0 t=50 res=10 res3=10 -p3
r.mapcalc expr="prec_1 = 100"
r.mapcalc expr="prec_5 = 500"

Then interpolate:

r.series.interp --v input=prec_1,prec_5 datapos=0.0,1.0 \
                  output=prec_2,prec_3,prec_4 samplingpos=0.25,0.5,0.75 \
                  method=linear

Nowww interpolate using the file option. First prepare the input file:

echo "prec_2|0.25
prec_3|0.5
prec_4|0.75" >> outfile.txt

Then interpolate:

r.series.interp --v input=prec_1,prec_5 datapos=0.0,1.0 file=outfile.txt method=linear

The resulting maps will have the values 200, 300 and 400. Math ate, no crumbs left πŸ“


πŸ‘‘ SEE ALSO πŸ‘‘

g.region, r.series, r.series.accumulate

Also: Hints for large raster data processing β€” go read it, iykyk ✨


πŸ’œ AUTHOR πŸ’œ

SΓΆren Gebbert


🌟 SOURCE CODE 🌟

Available at: r.series.interp source code (history)

Latest change: Friday Feb 07 19:16:09 2025 in commit: a82a39f673b97fafcfce1604dc3e6015cb96487a

Main index | Raster index | Topics index | Keywords index | Graphical index | Full index

Β© 2003-2026 GRASS Development Team, GRASS 8.5.0 Reference Manual


okay that's the whole page, you're officially fluent in r.series.interp, slay πŸ’…βœ¨ this was GRASS 8.5.0 doing r.series.interp(1grass) things, mwah, go interpolate something gorgeous 🫢🌈

πŸ“¦ where this page comes from