wtgeographer

RemapValue Usage

Discussion created by wtgeographer on Apr 1, 2014
I successfully produce and empty cost raster at the end of this script. I am fairly confident it has something to do with RemapValue parameters? Does anyone know why my out put cost distance raster is empty?
#-------------------------------------------------------------------------------
import arcpy
import os
import time
from arcpy import env
from arcpy.sa import *
from decimal import Decimal
arcpy.CheckOutExtension("spatial")
env.overwriteOutput = 1

#Begin code
#To be ommitted ***"Hardcoded Testing"***
env.workspace = r'\\Scratch.gdb'
landuseRaster = r'\\Landuse_Raster_Clip'
subs = r'\\Subs_w_dist'
Field = 'Name'
destValue = 'Coulter'
originValue = 'Amarillo 34th St'

#Where clause sql expression
where_clause_destination = "\"{}\" = '{}'".format(Field,destValue) #produces: "Name" = 'Coulter'
where_clause_origin = "\"{}\" = '{}'".format(Field,originValue) #produces: "Name" = 'Amarillo 34th St'

#Make feature layer
arcpy.MakeFeatureLayer_management (subs, "origin_Selection", where_clause_destination)
arcpy.MakeFeatureLayer_management(subs, "destination_Selection", where_clause_destination)

# Process: Slope
arcpy.AddMessage("Computing slope...")
arcpy.gp.Slope_sa(raster_Clip, 'slope_Raster', "DEGREE", "3.2808333")

# Process: Slice
arcpy.gp.Slice_sa("slope_Raster", 'slice_Slope', "10", "NATURAL_BREAKS", "1")

Outcomes