[GRASS-user] help to use r.mapcalc with decimal/binary (modis
neteler at itc.it
Tue May 29 11:15:53 EDT 2007
On Mon, May 28, 2007 at 12:14:05AM +0100, Glynn Clements wrote:
> Hamish 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)
> Damn, no, that neither.
So far I used r.bitpattern to do this job. Given the new functionality
in r.mapcalc, we can retire r.bitpattern for GRASS 7 - great.
Thanks for the bit pattern extensions in r.mapcalc!
More information about the grass-user