# Name: Over_Ex_02.py
# Description: Returns those values from the first input that are
# non-zero; otherwise, returns the value from the second input
# 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 Over
outOver = Over(inRaster1, inRaster2)
# Save the output
outOver.save("C:/iapyexamples/output/outover")