Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Raster Calculator in Python

$
0
0
Hello,

I want to execute the following line in a python code:

SetNull(Raster2 < 2, Setnull(Raster2 != Raster1, Raster2))

Using the Raster Calculator, everything works fine. But I want to run it in a python routine.
Until now I got this:

from arcpy.sa import *
Raster_Final = SetNull (Raster2 < 2, SetNull (Raster2 != Raster1, Raster2))

This code doesn't return an error, but neither return what I want.
Could anybody help me?

Viewing all articles
Browse latest Browse all 2485

Trending Articles