[GRASS-user] MASK does not do it's work (?) with r.mapcalc -- Again!

nikos.alexandris at felis.uni-freiburg.de nikos.alexandris at felis.uni-freiburg.de
Tue Jan 22 12:20:15 EST 2008


Thank you for the attention Moritz.

I understand MASK as a boolean map with (let's say) "1"
(for true) and "0" (for false).

The r.info (the one I provided in my previous e-mail) is
about the raster data I want to use to create a MASK and
not the MASK itself.

Should I understand that only "integer" raster data are
suitable to create a MASK?

I understand (reading the r.mapcalc functionality) that one
can use any kind of raster data (floating point) and create
a MASK which contains a "1" for the pixels that have any
value besides "NULL".

So I expected to have a "1" wherever there was a value in
my NDVI2006 file.

Maybe I use it wrong(?)

Should I specify to assign a value of "1" for all non-NULL
source pixels?

I'll try with "mask = a != 0" as described in the r.mapcalc
manual.


Thanks,

Nikos


More information about the grass-user mailing list