4

I have a raster that denotes certain landcover types.

How do I delete all of the pixels except for the ones I want?

I tried going through the symbology tab and while that deletes it for display it doesn't change the raster file itself, so if I were to delete and reload the file it would revert back.

1 Answer 1

7

You can use the reclassify tool in Spatial analyst to change your values to NoData (or any other values). You can also use the raster calculator to apply some rules e.g. Con((raster>=20) & (raster<=30), raster) will set to NoData all values that are not between 20 or 30.

2
  • There's also the SetNull tool.
    – user2856
    Dec 19, 2016 at 23:46
  • Thanks you guys! I used the Reclassify tool and it worked PERFECTLY. I should have thought about that. and Luke thanks for the tip on the SetNull tool, I'll keep that in mind if I need it again :)
    – cAnna01
    Dec 20, 2016 at 1:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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