[GRASS-dev] [GRASS GIS] #912: r3.mapcalc depth() and z() function upside down
GRASS GIS
trac at osgeo.org
Mon Aug 20 06:23:09 PDT 2012
#912: r3.mapcalc depth() and z() function upside down
----------------------+-----------------------------------------------------
Reporter: ayepri | Owner: grass-dev@…
Type: defect | Status: closed
Priority: normal | Milestone: 6.4.0
Component: Default | Version: unspecified
Resolution: fixed | Keywords:
Platform: All | Cpu: Unspecified
----------------------+-----------------------------------------------------
Changes (by huhabla):
* status: new => closed
* platform: MacOSX => All
* resolution: => fixed
Comment:
This issue should be fixed in trunk r52769, 6.4.svn r52771 and 6.5.svn
r52772.
Now the z-coordinate is computed from bottom to the top.
Example:
{{{
GRASS 7.0.svn (TestLL):~ > g.region b=0 t=100 n=90 s=-90 e=180 w=-180
res3=20 res=20 -p3
projection: 3 (Latitude-Longitude)
zone: 0
datum: wgs84
ellipsoid: wgs84
north: 90N
south: 90S
west: 180W
east: 180E
top: 100.00000000
bottom: 0.00000000
nsres: 20
nsres3: 20
ewres: 20
ewres3: 20
tbres: 20
rows: 9
rows3: 9
cols: 18
cols3: 18
depths: 5
cells: 162
cells3: 810
GRASS 7.0.svn (TestLL):~ > r3.mapcalc expr="test = z()" --o
100%
GRASS 7.0.svn (TestLL):~ > r3.out.vtk input=test output=/tmp/test.vtk --o
&& paraview --data=/tmp/test.vtk
100%
}}}
Result see attachment: r3mapclac_paraview_z_coordinate.png
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/912#comment:1>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list