|
@@ -9,12 +9,13 @@ export GRASS_OVERWRITE=1
|
|
|
# The region setting should work for UTM and LL test locations
|
|
|
g.region s=0 n=80 w=0 e=120 b=0 t=50 res=10 res3=10 -p3
|
|
|
|
|
|
-r.mapcalc expr="prec_1 = rand(0, 550)"
|
|
|
-r.mapcalc expr="prec_2 = rand(0, 450)"
|
|
|
-r.mapcalc expr="prec_3 = rand(0, 320)"
|
|
|
-r.mapcalc expr="prec_4 = rand(0, 510)"
|
|
|
-r.mapcalc expr="prec_5 = rand(0, 300)"
|
|
|
-r.mapcalc expr="prec_6 = rand(0, 650)"
|
|
|
+# Generate data
|
|
|
+r.mapcalc expr="prec_1 = rand(0, 550)" -s
|
|
|
+r.mapcalc expr="prec_2 = rand(0, 450)" -s
|
|
|
+r.mapcalc expr="prec_3 = rand(0, 320)" -s
|
|
|
+r.mapcalc expr="prec_4 = rand(0, 510)" -s
|
|
|
+r.mapcalc expr="prec_5 = rand(0, 300)" -s
|
|
|
+r.mapcalc expr="prec_6 = rand(0, 650)" -s
|
|
|
|
|
|
t.create type=strds temporaltype=absolute output=precip_abs1 title="A test" descr="A test"
|
|
|
t.create type=strds temporaltype=absolute output=precip_abs2 title="A test" descr="A test"
|
|
@@ -46,7 +47,7 @@ t.rast.mapcalc -sn inputs=precip_abs1,precip_abs2 output=precip_abs4 \
|
|
|
t.info type=strds input=precip_abs4
|
|
|
|
|
|
# Let the test fail
|
|
|
-g.remove rast=prec_1
|
|
|
+g.remove -f type=rast name=prec_1
|
|
|
t.rast.mapcalc -sn inputs=precip_abs1,precip_abs2 output=precip_abs4 \
|
|
|
expression=" (precip_abs1 + precip_abs2) * null()" base=new_prec \
|
|
|
method=equal nprocs=5
|