Create_Weekly_H20_FeatureClasses.py
# Purpose:
# For all the raw data text files (n=539) in the "txt_Final" folder:
# 1) Create XY event layer
# 2) Save event layer as a feature class with the same name as the text file
#
#
#
#
#
#
Author:
mbs7038
Created:
Copyright:
Licence:
18/12/2013
(c) mbs7038 2013
<your licence>
import arcpy
from arcpy import env
# Set environment settings
env.workspace = r"C:\Users\mbs7038\Documents\ArcGIS\FloodData\txt_FINAL"
savepath="C:\Users\mbs7038\Documents\ArcGIS\FloodData\Weekly_H20_Data.gdb"
tables=arcpy.ListTables("7*") # Only read tables that begin with the number 7
print "List Tables"
for table in tables:
try:
# DEFINE VARIABLES
# INPUTS
in_Table
x_coords
y_coords
z_coords
=
=
=
=
table
"Lon"
"Lat"
"wlevel"