Spliting data in to new fields
I have a set of data that has computer generated time stamps that I would like to copy specific parts of it into new fields. The fields are populated with this information: 1/1/2007 12:18:34.721544 AM...
View ArticleSelected ListBox data access
Hi All, At this point my forehead is aching from beating my head against the keyboard. Someone PLEASE help!! Basic premise: I have a script that builds and runs an SQL query based on parameters in a...
View ArticlePython Final Project Assistance XY points from table to final IDW raster
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...
View Articlefield mapping wih TableToTable_conversion
Hello, I'm attempting to write a script that takes in a CSV file and utilizes an arcpy.TableToTable_conversion() to create a table in a geodatabase. I would like to take advantage of Field Mapping...
View ArticleSelect by attribute use cursor save off as feature class
I feel this is a very basic problem but for the life of me I can't seem to figure out what is wrong, which is driving mad. I am assuming it is my logic. I have a feature class with hundreds of...
View ArticleCustom modules in process vs. out of process
Hello everyone, I've recently run into a frustrating problem where my script runs as expected, however crashes at the very end of the script. When I say very end, I mean it will print a message on the...
View ArticleI thought I had update cursor figured out. But Not! Please help
I am processing polygons > 60,000. using zonal stats - All. I use a loop to select a subset for processing in batches. Then run the zonal stat to table. Create a dictionary of the stats and I want...
View ArticleFor-loop calendar help!
sorry about how messy it is but I cant figure out a way to get the for-loop to work, everything is working but the the for-loop I am trying to print out the calendar Code: #Define number of days in a...
View Articlecomma delimited field
Hello! I am working with a table and I would like to get this: number(stored as text) Code Year 0500, 0600, 0700 ABC1 2012 to this: number Code Year 0500 ABC1 2012 0600 ABC1 2012 0700 ABC1 2012 I have...
View ArticlePython and ArcGIS Runtime
Hi, I'm new to using python and ArcGIS together and really struggling with something which I'm not entirely sure is possible. I'm really hoping somebody out there has managed to do similar or could...
View ArticleUnique Attributes
Hello I am very new to ArcGIS and was hoping someone could guide me in the right direction, I need to find unique numbers from a attribute field and be able to change the colour of the line. I am using...
View ArticleCalculate new field based on values in another field
I have a large file (~2.5 million rows) that contains a field of dates and times. There are 60 different dates in this field in the form YYYYMMDDHHMM. I want to add a new field such that the earliest...
View Articleproblem with SelectLayerByAttribute management in script
hello my problem is that this tool works perfectly in IDLE or PyScripter programs, but if I use in the script in ArcGIS desktop this problem occurs: arcgisscripting.ExecuteError:ERROR 000582... why not...
View Articledecrease density of points
If I have a point feature class with about 1 million points that are spread one meter apart each, how can I EVENLY reduce the density of these points by about an order of magnitude? I tried selecting...
View ArticleError: Using Search Cursor on XLS File
I am trying to cursor search through a .xls file using Code: arcpy.SearchCursor My code is this: Code: xls = r"\\spatialfiles.work\Local\scripts\python\Excel\Report.xls\'Dataset selection$'" for row in...
View ArticleScript works in python win but does not in al toolbox within ArcMAP
Hi everybody... I've been developing a quite long script, and I tested it in PyScripter an IDLE when it was finished.... well it works perfectly, so I added it to a toolbox in ArcMAP and when I ran it...
View ArticleAuto DBF output help!
I'm not understanding how to use the script located here: http://resources.arcgis.com/en/help/...0000001t000000 I've used other python scripts such as auto pdf output script with no problem. Here is...
View ArticleNested searchcursor to update the nesting data
I have a script that uses one layer to select features of a second layer in the first loop of the script. When the second layer's features are selected, I have a second loop that is supposed to update...
View ArticleApplying Definition Query to Layer
I have some code that goes through and adds layers to a Map Document. I also want to apply definition queries to some layers: arcpy.MakeFeatureLayer_management(dataSource,dataSource_lyr) addLayer =...
View ArticleCustom Programmed Point Map Marker Symbology
Hi there, I have a point layer with an underlying table. This table has a field in it which matches the file names of my folder with a large number of png files (one file per point). I'd like to...
View Article