AnsweredAssumed Answered

How to clear NoData value of a raster in arcpy?

Question asked by udayaj on Sep 19, 2017
Latest reply on Oct 5, 2017 by udayaj

I have an 8-bit GeoTIFF raster with its NoData value set to zero in metadata. But I need to clear that NoData value assignment as zero is a valid value there. I tried to use "SetRasterProperties_management", but it does not let me to clear the NoData value. Is there a way to do this?


I am doing this to few bands extracted from a HDF4 file. If it is possible to clear NoData=0 assignment at the HDF4 file level, it would be much greater.

original HDF4 file: 

I am more concerned about the 2nd band.


I cannot use raster export/copy/SetNull/IsNull operations as I am doing this for 75,000+ rasters.


nodata geotiff


Update: NoData assignments cannot be cleared using "arcpy.SetRasterProperties_management" tool has been reported to Esri support and accepted as a bug.