<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic RemapValue Usage in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/remapvalue-usage/m-p/641478#M49997</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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?&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
#-------------------------------------------------------------------------------
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")
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Apr 2014 16:57:08 GMT</pubDate>
    <dc:creator>NoahHuntington</dc:creator>
    <dc:date>2014-04-01T16:57:08Z</dc:date>
    <item>
      <title>RemapValue Usage</title>
      <link>https://community.esri.com/t5/python-questions/remapvalue-usage/m-p/641478#M49997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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?&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
#-------------------------------------------------------------------------------
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")
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 16:57:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/remapvalue-usage/m-p/641478#M49997</guid>
      <dc:creator>NoahHuntington</dc:creator>
      <dc:date>2014-04-01T16:57:08Z</dc:date>
    </item>
  </channel>
</rss>

