December 19th, 2013, 03:25 AM
I am trying to run a process (which works fine), and I wanted to save my outputs in to a list I specified above.
for example as below, I have run the process (is null) and I want the process to save in the is_null_list .
but the process is running no problem and creating the layers, but it is not saving them In the is_null_list.
#select the variables
straightline = "Straightline_Reclassify"
walking = "Walking_Reclassify"
driving = "Driving_Reclassify"
print "Reclassify values complete"
#create list to be edited
mylist = [straightline, driving, walking]
#Set all the areas that have no value, to have a value
for feature in mylist:
null_feature = arcpy.gp.IsNull_sa(feature, feature + "Null")
thank you Hannah
December 19th, 2013, 10:19 AM
You need to post more of the code and with code tags. At first glance, it seems that arcpy.gp.isnull_sa() isn't returning a value.
Originally Posted by hannahkh22
December 19th, 2013, 10:50 AM
python functions and methods all return a value.
[/code] are essential for python code and Makefiles!
December 20th, 2013, 05:37 AM
the Is null process is working and creating an output on ArcMap, but when I append it does not seem to be going in to the list :S.
I can't seem to figure out my.
- if I was to for example with just number or words it works fine. I don't know if it is because I am trying to do a process?