AnsweredAssumed Answered

python list in memory to arcpy Table?

Question asked by slayback on Jul 18, 2012
Latest reply on Jul 19, 2012 by slayback
I'm wondering if there is a way to convert a list in python (or it could be an array, I think) to a Table object, that I'll then do further geoprocessing on. Currently, the only way I can get this to work is to write the list to a csv file, and then use arcpy.TableToGeodatabase_conversion to bring that csv file into a geodatabase. I dont want the csv file, so would prefer to simply pass the list object in memory to the geodatabase.

And actually, I'd like to not even put it in the geodatabase, but just keep it as a Table object in memory. I'll then run  arcpy.MakeXYEventLayer_management, and then run the IDW tool on the resulting layer to get the desired output raster. I'd rather not keep around (or have to bother deleting) the intermediate files.

Seems like this should be trivially easy, but I cant find any hints on how to do this. I have tried to pass the python list object directly to MakeXYEventLayer, but it just hangs/takes forever. Presumably eventually it would return an error.

Outcomes