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 mapsinfile=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 mapoutfile=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:linearDefault: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
- 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