Hi all,
I am using ArcGIS Pro 2.9. I want to use arcpy to obtain the nodata value for a raster, but can't figure out how to do that. It is not listed in getRasterProperties(). Any help would be appreciated.
Solved! Go to Solution.
Raster Band properties—ArcGIS Pro | Documentation
even for single band rasters... aka rasters
noDataValue
(Read Only)
The NoData value of the raster band.
Raster Band properties—ArcGIS Pro | Documentation
even for single band rasters... aka rasters
noDataValue
(Read Only)
The NoData value of the raster band.
I am not sure how I missed that in the documentation. I appreciate your assistance and not sure I want my question preserved for all eternity, but maybe someone else will ask the same question. Thanks again
To add to Dan's answer
arcpy.da.Describe(your_raster)["noDataValue"]
# or
arcpy.Raster(your_raster).noDataValue