Skip to main content
Question

How do I set a range of values to NoData using RasterBandNodataSetter.

  • December 21, 2023
  • 1 reply
  • 155 views

mspencer
Contributor
Forum|alt.badge.img

I have a raster and want to set values which are < 5 to NoData and also values which are equal to 255. I have tried setting values of 255 to NoData using the RasterBandNodataSetter, but in the output raster all three bands still have values of 255. I've attached the workspace. Ideally I'd like to set these values all at once but I'm just trying to get one value set correctly first. Thanks

1 reply

kailinatsafe
Safer
Forum|alt.badge.img+21

Hello @mspencer​, thanks for posting! Can you try using the RasterCellValueReplacer instead of the RasterBandNodataSetter? This will replace a range of band values with a single value, in this case, your Nodata value.

imageHappy to help, Kailin.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings