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