I'm trying to mask land in a raster and just wondering if anyone knows how to do this. I tried using the raster calculator by producing a new raster based on a threshold value but my output raster is classified to 0 and 1 - 0 being my mask. I still want to retain the original values in my pixel.

Con("RasterName", 0, "RasterName", "value= Number")

this algorithm should take care of that. For the certain "number" raster is converted to "0" rest of it will be kept as "RasterName" if you have more complex algorithm you need to nest another Con in this Con.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.