annesantamaria

Python Final Project Assistance XY points from table to final IDW raster

Discussion created by annesantamaria on Feb 15, 2014
Latest reply on Mar 11, 2014 by xander_bakker
Hi,
I am taking an independent study python class and the professor is just learning python as well. For my final project I want to do the following:

1. add xy data from several tables-Make XY events layer-using WGS84 spatial reference
2. convert that data to a permanent shapefile- copy features
3. take those points and list fields-arcpy.listfields
4. run IDW across several fields for all the points

I can run that process for one set of data from table to IDW raster but I cannot seem to figure out how to turn that into a code that automates twenty tables and many fields in those points layers.

Any suggestions on how to start? Essentially I need a script that I can turn into a toolbox for a final project in April. I thought I had this under control until I realized how hard it is for me to grasp python. I am just learning and I DON'T WANT SOMEONE JUST TO TELL ME HOW to do it. I want to really understand.

import arcpy
from arcpy import env

# set workspace
arcpy.env. workspace ="whatever the workspace would be C:/user/etc"
tablelist = arcpy.Listtables()
.....# this is where I get stuck how do take this table list and turn into into several events layers. Do I need to list all the fields in the table. 

for tables table list:
     arcpy.MakeXYEvents layers(enter parameters)


arcpy.CopyFeatures

I guess what I am looking for is the best next step to take. I appreciate any assistance.
Anne

Outcomes