# Name: Diff_Ex_02.py
# Description: Determines which values from the first input are
# logically different from the values of the second input
# on a pixel-by-pixel basis within the Analysis window
# Requirements: Image Analyst Extension
# Import system modules
import arcpy
from arcpy import env
from arcpy.ia import *
# Set environment settings
env.workspace = "C:/iapyexamples/data"
# Set local variables
inRaster1 = "degs"
inRaster2 = "negs"
# Check out the ArcGIS Image Analyst extension license
arcpy.CheckOutExtension("ImageAnalyst")
# Execute Diff
outDiff = Diff(inRaster1, inRaster2)
# Save the output
outDiff.save("C:/iapyexamples/output/outdiff")