On Mon, Jul 11, 2011 at 7:36 PM, Michael Barton <[email protected]> wrote:
> This is from GRASS 7 compiled from svn trunk yesterday.
>
> I'm simply trying to assign null values in an SRTM using r.mapcalc. I do the 
> following statement...
>
> r.mapcalc 
> expression='SRTM_ffB03_p199r033=if(SRTM_ffB03_p199r033==-32768,null(),SRTM_ffB03_p199r033)'
>  --o
>
>
> The entire map turns to null.
>
> Any idea what I'm doing wrong?

Try this:

r.mapcalc expression='SRTM_ffB03_p199r033 =
if(SRTM_ffB03_p199r033==-32768,null(),SRTM_ffB03_p199r033)' --o

(note the white spaces around "=", which is required in GRASS7 - a bit
unfortunate...)

Markus
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to