2
# Simple r.series wrapper
3
# We need to set a specific region in the
4
# @preprocess step of this test.
5
# The region setting should work for UTM and LL test locations
6
g.region s=0 n=80 w=0 e=120 b=0 t=50 res=10 res3=10 -p3
8
r.mapcalc --o expr="prec_1 = 100"
9
r.mapcalc --o expr="prec_2 = 200"
10
r.mapcalc --o expr="prec_3 = 300"
11
r.mapcalc --o expr="prec_4 = 400"
12
r.mapcalc --o expr="prec_5 = 500"
13
r.mapcalc --o expr="prec_6 = 600"
16
t.create --o type=strds temporaltype=absolute output=precip_abs title="A test" descr="A test"
18
t.register --o type=raster input=precip_abs maps=prec_1,prec_2,prec_3,prec_4,prec_5,prec_6 start="2001-01-01" increment="1 months"
20
t.rast.colors input=precip_abs color=random
21
r.colors.out map=prec_1
22
t.rast.colors input=precip_abs color=grey.eq
23
r.colors.out map=prec_2
24
t.rast.colors input=precip_abs color=grey.log
25
r.colors.out map=prec_3
28
t.unregister type=raster maps=prec_1,prec_2,prec_3,prec_4,prec_5,prec_6
29
t.remove type=strds input=precip_abs