# Name: BitwiseNot_Ex_02.py
# Description: Performs a Bitwise Complement operation on the
# binary value of an input raster
# 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
inRaster = "degs"
# Check out the ArcGIS Image Analyst extension license
arcpy.CheckOutExtension("ImageAnalyst")
# Execute BitwiseNot
outBitwiseNot = BitwiseNot(inRaster)
# Save the output
outBitwiseNot.save("C:/iapyexamples/output/outbitnot")