You will need to create a loop or iteration process to go through each or of your daily records. There are iteration tools in ModelBuilder or maybe export to python and code the iteration/loop process.Regards,Craig
import arcpy tbl= arcpy.ListFields(r'D:\Temp\Test.mdb\Test') for fld_names in tbl: print fld_names.name
import arcpy tbl = r'D:\Temp\Test.mdb\Test' fld_names = [f.name for f in arcpy.ListFields(tbl)] print fld_names
The critical part you need to manipulate is the field names. Access to these can be achieved using: import arcpy tbl= arcpy.ListFields(r'D:\Temp\Test.mdb\Test') for fld_names in tbl: print fld_names.name or import arcpy tbl = r'D:\Temp\Test.mdb\Test' fld_names = [f.name for f in arcpy.ListFields(tbl)] print fld_names Second method many by more ideal for iterating in a script, as field names are stored in a python list/table.Regards,Craig
import arcpy from arcpy import env from arcpy.sa import * arcpy.CheckOutExtension("Spatial") env.workspace = srcFC = cellSize = power = searchRadius = tbl= arcpy.ListFields(srcFC, 'r*') for zField in tbl: print 'Processing: ' + zField outIDW = Idw(srcFC, zField, cellSize, power, searchRadius) outIDW.save(env.workspace + '\\' + zField + '_IDW') del srcFC, cellSize, power, searchRadius, tbl, zField
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.