Tagged Questions
11
votes
1answer
262 views
File Validation using ArcPy
I have a script which scans a directory and outputs basic raster data information such as the file name, format, number of bands, and etc. I need a way to make it so if the directory does not contain ...
4
votes
2answers
242 views
Finding Band Count in Rasters using ArcPy
I'm having troubles finding the band count for my raster files using ArcPy.
I need to first list all the raster files in a directory, and then display the band count for each file. I am able to list ...
5
votes
2answers
2k views
Converting from DMS to DD using Python in Field Calculator
I need to convert lat/long that is expressed as degrees, minutes, and seconds in the data into decimal degrees. For example, in the data, they are listed as N335042.06 in the Latitude column, and ...
4
votes
1answer
708 views
How to convert state name abbreviations to full names?
I have a data table with columns that includes city names (ex: San Jose) and state name abbreviations (ex: CA). Is there a way to define the state names as their full names (i.e., CA = California) and ...
9
votes
5answers
809 views
Determine min and max values in an ASCII raster dataset using Python
I have a raster dataset in ASCII format. Using Python, I need to determine the min and max values inside the dataset. I've been told that the header information is key, which contains things like ...