I would like to know if it’s possible to perform bitwise operator throught bandmathx raster calculator. Seems Muparser provide these kind of operator (&, |, <<, >>) but can’t find a working syntax.
For example I want to check the 3rd bit of an 8bits mask which informs about the presence of snow, I tried the following syntaxes with no success
im1b1 & 00000100
im1b1 & 00000100 == 1
im1b1 & 4
The reported error is argument 1 of function/operator “im1b1” is of type ‘f’ whereas type ‘i’ was expected. It’s as if raster values are interpreted as float instead of integer
Thanks in advance for any help.