[GRASS-user] r.mapcalc problem ?

Martin Laloux martin.laloux at gmail.com
Thu Jul 2 13:32:36 EDT 2009


Excuse me if I seem stupid but I have a problem with r.mapcalc. I have a dem
stored in FCELL with range of data(z) : min = -26.670000  max = 695.960022 .
I try to extract a raster/dem with all values < 0.
I try
r.mapcalc 'test = if(mydem >0.0000,mydem,null())'
Results give me
Range of datafor test :    min = 0.200000  max = 695.960022
with r.mapcalc 'test = if(mydem < 0.0000,mydem,null())'
results
Range of data:    min = -26.670000  max = -0.010000  -> ok for me
But when i  display test map, i allways get the full dem and not only a map
with values < 0.
I try replacing test with MASK but same result
What is the error I made or how can I do ?
-------------- section suivante --------------
Une pi?ce jointe HTML a ?t? enlev?e...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20090702/4182c247/attachment-0001.html


More information about the grass-user mailing list