kdegraf4

Automating a tool?

Discussion created by kdegraf4 on Jul 21, 2012
Latest reply on Jul 22, 2012 by kdegraf4
Is possible to write a python script to run the Zonal Statistics As a Table Tool while I am away from my desktop? By that I mean once one table has been generated I want to write a script that will automatically run the tool again and create another table. I have 320 tables to create and up to this point have only generated 160 tables which has taken about 2 weeks (8 hour workdays). I only have around 3 weeks left until my internship is over and I would love to get this project completed so I can move onto at least one more before I have to leave.

If it is possible could someone point me in the right direction?

EDIT:  I have came up with a blueprint to better help explain what I have in mind...I want to know if that is possible.

######################################
###Blueprint: Zonal Statistics As Table Automation###
###Language: Python?                                       ###
###Description: Continuous table generation          ###
######################################

Tool Name: ZoST Table Generator

Input (Raster):
Region(Parameter):
#Select individual region or all regions at once.
#Select appropriate region/raster from file geodatabase.
#Load via browse input box or select from pre-loaded dropdown list?

Input (Raster):
Scenario & Year(Parameter):
Drop down list or browse box:
#Only one year can be selected at a time.
#Select appropriate year/raster from file geodatabase.
#Load via browse input box or select pre-loaded dropdown list?

Output (Browse box):
#input output location and table name
#example pathway: C:\Users\admin\Documents\ArcGIS\Default.gdb\ZoSTyyyy_regionx
#example filename: C:\Users\admin\Documents\ArcGIS\Default.gdb\ZoST2010_region1


Raster Analysis Environment: "Minimum of Inputs" pre-selected
#I want this to be pre-selected rather then Maximum of inputs which is the default

Statistic Type (Optional): All
# I want ALL to be selected automatically

Outcomes