[GRASS-user] help to use r.mapcalc with decimal/binary (modis data)

Hamish hamish_nospam at yahoo.com
Sun May 27 03:23:51 EDT 2007


Glynn Clements wrote:
> 
> Oops; I could have sworn that r.mapcalc understood hex. Sorry; you'll
> need to use decimal values, e.g.
> 
> r.mapcalc MASK="if(sur_refl_qc_250 & 240 == 176 , 1, null())"


so r.mapcalc can do bitwise & |? (nothing about that in the help pages)


Hamish




More information about the grass-user mailing list