854 reputation
38
bio website profile.usgs.gov/cprice
location
age
visits member for 2 years, 11 months
seen Jun 19 at 22:28

Due to the lapse in appropriations, I am prohibited from conducting work as a Federal employee, including returning phone calls and emails, until further notice. If you urgently need to speak with someone at the USGS regarding emergencies or matters of protecting life and property, call (703) 648-7411 or (703) 648-7412. For more information on the shutdown, please visit the Department of the Interior website at www.doi.gov. Thank you.


Jun
16
comment Convert field types in GDB with Python
If you have FME ($$) I understand it's a much better tool for this kind of "data rescue". Glad you were successful getting your data files in shape. We have a license for DataInteroperability (which is an ArcGIS extension interface to FME) and I've heard good things.
Jun
15
answered Convert field types in GDB with Python
Apr
21
comment Extracting flow accumulation to stream shapefile
No one has suggested running streamlink followed by zonal statistics as table to get the min and max flow accumulation for each reach. Maybe I'm missing something about the question.
Feb
13
comment How to do a separate Python installation with ArcGIS?
A really nice feature of anaconda is you can set it up with virtual environments with the versions you need for ArcGIS or any other package. For example, you could have a virtual environment set up to work with ArcGIS that has the versions that Esri tools are expecting, and another one that doesn't include arcpy when working totally outside of arcgis.
Dec
31
comment arcpy Union w/No_Gaps puts “0” into blank fields
Vince is entirely correct. If you must work with shapefiles, you can locate the gaps using the feature ID tags (non overlaps have a _FID of -1).
Sep
26
comment Having trouble with 'and' 'or' statements and negative numbers
I agree. Unfortunately, the poster tagged the question as 10.0 -- arcpy.da cursors were added at 10.1.
Sep
26
answered Having trouble with 'and' 'or' statements and negative numbers
Sep
26
comment Having trouble with 'and' 'or' statements and negative numbers
A better condition to use is
Sep
26
answered Raster clipping without producing no data values
Sep
24
awarded  Autobiographer
Aug
9
comment can arcpy detect whether it's running in Desktop or Server?
Should be noted that this Python code assumes the software is installed using the normal folder naming conventions. It is pretty rare for someone not to use the default folder name "Desktop10.1" evn if they may move the path around (for example, we install to "C:\ArcGIS\Desktop10.1".
Aug
9
revised can arcpy detect whether it's running in Desktop or Server?
update to add support for arcpy in ArcGIS Pro
Aug
9
answered ArcGIS for Desktop equivalents to ArcInfo Workstation tolerance types?
Aug
9
answered Meaning of red cross icon next to Geoprocessing tool/model?
Aug
9
comment How to export all the layers from Table of Content to shp file?
What a great argument for eschewing .NET/ArcObjects in favor of Python! Which code will you be able to read and use five years from now!
Jul
22
awarded  Necromancer
Jul
12
awarded  Yearling
Jul
7
comment Python Toolbox (.pyt) Tool Output Layer Name
Seems to me the best solution is to set up an output GPLayer as a derived parameter, this gives you full control of the layer. But this doesn't really solve the problem as I suspect your feature class and layer outputs will both be added to the TOC.
Jul
7
answered Script never finishes and throws no errors. Creates lock on file until restart?
Jul
7
comment Efficient way to use a CSV to Define a Feature Class
Just be clear, the layer's geodata are not in memory, just validated informatino about the layer. If you create a feature layer or table view and pass that to a tool, the tool does not have to validate the input (ie make sure it exists, get the field list and other properties - the layer has all this "metadata" in memory already).