There is a part in my Python script where I convert a Feature to a Raster (arcpy.FeatureToRaster_conversion). The output is a raster with a certain value (based on a field of the Feature). The rest of the extent of the resulting raster has "NoData" values.
However, I want that "NoData" to be 0. Here is the code.
arcpy.env.overwriteOutput = True raster = arcpy.Raster(export_path) arcpy.sa.Reclassify(raster, "Value", arcpy.sa.RemapValue([["NoData", 0]]), "").save(export_path)
But this has no effect. I still have "NoData".
How do you reclassify "NoData" values to a numerical value using arcpy?