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")
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.