I need to use SetNull function several times to extracting the required values from the raster dataset.I am using the following line of code, and the tool is running without any error; but it is not providing the desired output.arcpy.gp.RasterCalculator_sa("SetNull(ZMAXRas == -99,ZMAXRas)",outWorkspace + inputASCII [:-4] + "_W")
from arcpy.sa import * arcpy.env.workspace = outWorkspace ZMAXRas = Raster(ZMAXRas) # convert a path to a raster object outRas = SetNull(ZMAXRas == -99,ZMAXRas) outRas.save(inputASCII[:-4] + "_W")
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.