Replace NoData pixels

836
1
09-06-2020 06:19 AM
Labels (1)
ModyBuchbinder
Esri Regular Contributor

I have a 3 band raster and in one of the bands there are some NoData pixels.

When I show it in Pro the area where one band have NoData value become transparent and I can see the layers under (looks strange).

For this and other reasons I would like to fix this by replacing the NoData with other value (for example zero).

The only way I found to do this is to build a raster function that had 3 different extract bands function to split the bands. Then On the band that has the problem I run IsNull and then Con giving a constant raster when the original is null. Finally I combine the 3 bands again.

I still have problems with this.

Is this the only way?

I would like to keep the original raster without change.

Thanks 

0 Kudos
1 Reply
PeterBecker
Esri Regular Contributor

You should be able to just use The Mask function. This enables you to define a value in any-band and replace with another. Also check how no data is defined on the image.

_Peter

Sent from iPhone

0 Kudos