1r.series.interp(1) GRASS GIS User's Manual r.series.interp(1)
2
3
4
6 r.series.interp - Interpolates raster maps located (temporal or spa‐
7 tial) in between input raster maps at specific sampling positions.
8
10 raster, series, interpolation
11
13 r.series.interp
14 r.series.interp --help
15 r.series.interp [input=name[,name,...]] [datapos=float[,float,...]]
16 [infile=name] [output=name[,name,...]] [sampling‐
17 pos=float[,float,...]] [outfile=name] [method=string] [--over‐
18 write] [--help] [--verbose] [--quiet] [--ui]
19
20 Flags:
21 --overwrite
22 Allow output files to overwrite existing files
23
24 --help
25 Print usage summary
26
27 --verbose
28 Verbose module output
29
30 --quiet
31 Quiet module output
32
33 --ui
34 Force launching GUI dialog
35
36 Parameters:
37 input=name[,name,...]
38 Name of input raster map(s)
39
40 datapos=float[,float,...]
41 Data point position for each input map
42
43 infile=name
44 Input file with one input raster map name and data point position
45 per line, field separator between name and sample point is |
46
47 output=name[,name,...]
48 Name for output raster map
49
50 samplingpos=float[,float,...]
51 Sampling point position for each output map
52
53 outfile=name
54 Input file with one output raster map name and sample point posi‐
55 tion per line, field separator between name and sample point is |
56
57 method=string
58 Interpolation method, currently only linear interpolation is sup‐
59 ported
60 Options: linear
61 Default: linear
62
64 r.series.interp interpolates new raster maps located temporal or spa‐
65 tial in between existing raster maps. The interpolation is performed
66 at specific sampling positions. The sampling position for each output
67 map must be specified, as well as the data position of the input maps.
68 The following interpolation methods are supported.
69
70 • linear: Linear interpolation. At least two input maps and data
71 positions are required.
72
74 Interpolate linear three new maps at 3 sampling positions in the inter‐
75 val (0.0;1.0)
76 First prepare the input maps:
77 g.region s=0 n=80 w=0 e=120 b=0 t=50 res=10 res3=10 -p3
78 r.mapcalc expr="prec_1 = 100"
79 r.mapcalc expr="prec_5 = 500"
80
81 Interpolate
82 r.series.interp --v input=prec_1,prec_5 datapos=0.0,1.0 \
83 output=prec_2,prec_3,prec_4 samplingpos=0.25,0.5,0.75 \
84 method=linear
85
86 Interpolate using the file option. First prepare the input file:
87 echo "prec_2|0.25
88 prec_3|0.5
89 prec_4|0.75" >> outfile.txt
90
91 Interpolate:
92 r.series.interp --v input=prec_1,prec_5 datapos=0.0,1.0 file=outfile.txt method=linear
93 The resulting maps will have the values 200, 300 and 400.
94
96 g.region, r.series, r.series.accumulate
97
98 Hints for large raster data processing
99
101 Sören Gebbert
102
104 Available at: r.series.interp source code (history)
105
106 Accessed: Mon Jun 20 16:46:25 2022
107
108 Main index | Raster index | Topics index | Keywords index | Graphical
109 index | Full index
110
111 © 2003-2022 GRASS Development Team, GRASS GIS 8.2.0 Reference Manual
112
113
114
115GRASS 8.2.0 r.series.interp(1)