~ubuntu-branches/ubuntu/wily/grass/wily

« back to all changes in this revision

Viewing changes to temporal/benchmark.sh

Tags: 7.0.0~rc1+ds1-1~exp1
* New upstream release candidate.
* Repack upstream tarball, remove precompiled Python objects.
* Add upstream metadata.
* Update gbp.conf and Vcs-Git URL to use the experimental branch.
* Update watch file for GRASS 7.0.
* Drop build dependencies for Tcl/Tk, add build dependencies:
  python-numpy, libnetcdf-dev, netcdf-bin, libblas-dev, liblapack-dev
* Update Vcs-Browser URL to use cgit instead of gitweb.
* Update paths to use grass70.
* Add configure options: --with-netcdf, --with-blas, --with-lapack,
  remove --with-tcltk-includes.
* Update patches for GRASS 7.
* Update copyright file, changes:
  - Update copyright years
  - Group files by license
  - Remove unused license sections
* Add patches for various typos.
* Fix desktop file with patch instead of d/rules.
* Use minimal dh rules.
* Bump Standards-Version to 3.9.6, no changes.
* Use dpkg-maintscript-helper to replace directories with symlinks.
  (closes: #776349)
* Update my email to use @debian.org address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# Here we test the limit of the number of layers
 
3
# @preprocess 
 
4
# The region setting should work for UTM and LL test locations
 
5
 
 
6
# temporary disabled test for performance reason
 
7
g.region s=0 n=80 w=0 e=120 b=0 t=50 res=10 res3=10 -p3
 
8
 
 
9
export GRASS_OVERWRITE=1
 
10
 
 
11
MAP_LIST="map_list.txt"
 
12
rm ${MAP_LIST}
 
13
 
 
14
NUM_MAPS=10000
 
15
 
 
16
echo "### Generate raster maps"
 
17
 
 
18
count=1
 
19
while [ $count -lt ${NUM_MAPS} ]; do
 
20
    name="test_bench_${count}"
 
21
    r.mapcalc --quiet expr="${name} = ${count}"
 
22
    echo ${name} >> ${MAP_LIST}
 
23
    count=$((count + 1))
 
24
done
 
25
 
 
26
echo "### Create space time datasets"
 
27
 
 
28
time t.create type=strds temporaltype=absolute output=bench1 title="Bench1" descr="Bench1"
 
29
time t.create type=strds temporaltype=absolute output=bench2 title="Bench2" descr="Bench2"
 
30
time t.create type=strds temporaltype=absolute output=bench3 title="Bench3" descr="Bench3"
 
31
time t.create type=strds temporaltype=absolute output=bench4 title="Bench4" descr="Bench4"
 
32
 
 
33
echo "### Register maps"
 
34
time t.register -i input=bench1  file=${MAP_LIST} start="2001-01-01 00:00:00" increment="1 day"
 
35
echo "### Register maps again"
 
36
time t.register input=bench2  file=${MAP_LIST}
 
37
echo "### Register maps again"
 
38
time t.register input=bench3  file=${MAP_LIST}
 
39
echo "### Register maps again"
 
40
time t.register input=bench4  file=${MAP_LIST}
 
41
 
 
42
echo "### List maps"
 
43
time t.rast.list input=bench1 column=name,start_time > "/dev/null"
 
44
time t.rast.list input=bench2 column=name,start_time > "/dev/null"
 
45
time t.rast.list input=bench3 column=name,start_time,end_time \
 
46
    where="start_time > '2001-01-01'" > "/dev/null"
 
47
time t.rast.list input=bench4 column=name,start_time,end_time,min,max \
 
48
    where="start_time > '2001-01-01'" > "/dev/null"
 
49
 
 
50
echo "### STRDS Infos"
 
51
t.info bench1
 
52
t.info bench2
 
53
t.info bench3
 
54
t.info bench4
 
55
 
 
56
echo "### Remove STRDS and maps"
 
57
time t.remove type=strds input=bench1
 
58
time t.remove type=strds input=bench2
 
59
time t.remove type=strds input=bench3
 
60
time t.remove -rf type=strds input=bench4
 
61