~ubuntu-branches/ubuntu/vivid/grass/vivid-proposed

« back to all changes in this revision

Viewing changes to temporal/t.rast.colors/test.t.rast.colors.sh

  • Committer: Package Import Robot
  • Author(s): Bas Couwenberg
  • Date: 2015-02-20 23:12:08 UTC
  • mfrom: (8.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20150220231208-1u6qvqm84v430b10
Tags: 7.0.0-1~exp1
* New upstream release.
* Update python-ctypes-ternary.patch to use if/else instead of and/or.
* Drop check4dev patch, rely on upstream check.
* Add build dependency on libpq-dev to grass-dev for libpq-fe.h.
* Drop patches applied upstream, refresh remaining patches.
* Update symlinks for images switched from jpg to png.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
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
 
7
 
 
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"
 
14
 
 
15
# @test
 
16
t.create --o type=strds temporaltype=absolute output=precip_abs title="A test" descr="A test"
 
17
 
 
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"
 
19
 
 
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
 
26
 
 
27
 
 
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