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

« back to all changes in this revision

Viewing changes to raster3d/r3.neighbors/test_suite/test.r3.neighbors.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
 
 
3
export GRASS_OVERWRITE=1
 
4
 
 
5
g.region w=0 e=30 s=0 n=30 b=0 t=30 res3=10
 
6
 
 
7
r3.mapcalc  expr="test_neighbor_float  = float(3)"
 
8
r3.mapcalc  expr="test_neighbor_double = double(3)"
 
9
r3.mapcalc  expr="test_neighbor_null = null()"
 
10
 
 
11
# First @test with float values with @precision=2
 
12
r3.neighbors input=test_neighbor_float output=test_neighbor_float_average \
 
13
    method=average window=3,3,3 
 
14
r3.out.ascii precision=2 input=test_neighbor_float_average output=test_neighbor_float_average.txt
 
15
 
 
16
r3.neighbors input=test_neighbor_float output=test_neighbor_float_sum \
 
17
    method=sum window=3,3,3 
 
18
r3.out.ascii precision=2 input=test_neighbor_float_sum output=test_neighbor_float_sum.txt
 
19
 
 
20
# Second @test with double values
 
21
r3.neighbors input=test_neighbor_double output=test_neighbor_double_average \
 
22
    method=average window=3,3,3 
 
23
r3.out.ascii precision=2 input=test_neighbor_double_average output=test_neighbor_double_average.txt
 
24
 
 
25
r3.neighbors input=test_neighbor_double output=test_neighbor_double_sum \
 
26
    method=sum window=3,3,3 
 
27
r3.out.ascii precision=2 input=test_neighbor_double_sum output=test_neighbor_double_sum.txt
 
28
 
 
29
# Third @test with null values
 
30
 
 
31
r3.neighbors input=test_neighbor_null output=test_neighbor_null_sum \
 
32
    method=sum window=3,3,3 
 
33
r3.out.ascii precision=2 input=test_neighbor_null_sum output=test_neighbor_null_sum.txt
 
34
 
 
35