POST
|
Whether the results are in an attribute table associated with a polygon or a non-spatial table doesn't really matter. I would export either table to a spreadsheet to summarize.
... View more
01-15-2015
02:02 PM
|
0
|
27
|
1048
|
POST
|
I ultimately need to iterate through a list of rasters (or a composite raster) to produce multiple sets of percentile results. My first attempt was to create a list of the rasters and use this in a for loop around lines 21 through 110. However, there were two problems with this: 1) each iteration overwrites (rather than appends to) the previous set of percentile results 2) to keep track of the results, a new field is needed in the output that contains the name of the raster for which the percentiles were derived from Are you able to provide a solution for this? I was thinking that output to a non-spatial table with a PolygonID may be an alternate method.
... View more
01-15-2015
11:58 AM
|
0
|
29
|
1048
|
POST
|
The raster was floating. I switched to integer and was able to make it further, but was hung up with: UnboundLocalError: local variable 'pix_val' referenced before assignment File "D:\Scripts\Python\Raster_Percentiles.py", line 100, in <module> pixval = GetPixelValueForPercentile(dct_per, perc_dec) File "D:\Scripts\Python\Raster_Percentiles.py", line 10, in GetPixelValueForPercentile return pix_val
... View more
01-15-2015
10:23 AM
|
0
|
33
|
1048
|
POST
|
Hi Xander, I was not previously able to successfully execute this code, but am now making a second attempt... I have replaced lines 21 and 22 with my raster and polygons and am receiving "RuntimeError: cannot open 'ras1'" while creating the dictionary at line 79. Do you have any thoughts on why I am encountering this error?
... View more
01-14-2015
02:40 PM
|
0
|
35
|
1048
|
POST
|
Check out the examples here: ArcGIS Help (10.2, 10.2.1, and 10.2.2)
... View more
01-07-2015
11:26 AM
|
0
|
0
|
473
|
POST
|
Is it possible to iterate over .e00 files in Model Builder? If so, how is this done?
... View more
01-07-2015
11:19 AM
|
0
|
6
|
4791
|
POST
|
Thanks Xander. I will work with this and attempt to modify for iterating through a list of rasters.
... View more
09-04-2014
10:14 AM
|
0
|
0
|
1048
|
POST
|
Thanks for the Python code for percentiles from a raster Xander. In my situation, I have multiple polygons that occur in various locations across a raster. I would like to generate the percentile statistics from the various portions of the raster that overlap with each individual polygon. Then, join those statistics with a unique row ID in the polygon layer. I am essentially in need of "Zonal Statistics as Table" with the ability to include percentile statistics along with Minimum, Mean, and Maximum. How can this be incorporated via Python?
... View more
07-29-2014
10:37 AM
|
0
|
46
|
4017
|
POST
|
It may be that my slice raster was not generated properly (attribute table shown below). It looks like it returned the number of cells in each class, which are all about the same since I used equal area classes. I don't see how to analyze this sliced raster with zonal statistics to generate a table of percentiles?
... View more
07-10-2014
02:56 PM
|
0
|
0
|
4017
|
POST
|
Thanks for the Slice suggestion. I ran the tool using the parameters you suggested. However, the raster attribute table that was returned simply shows 20 rows with "Values" of 1 through 20 and a "Count" of the number of pixels in each of these equal area classes. I don't see how I can derive the percentile values from this information?
... View more
07-02-2014
01:28 PM
|
0
|
2
|
4017
|
POST
|
I agree with Dan that Reclassify should work. I am not able to get into detailed descriptions of how to use these tools. ESRI provides a fair amount of documentation associated with the tools found in the toolbox. Be sure to read all of the help documentation associated with each tool prior to running it.
... View more
07-01-2014
06:17 AM
|
0
|
0
|
659
|
POST
|
There are a variety of ways you can do this, but one that jumps to mind is: You can use "Set Null" to set elevations outside of those bounds to Null. Then, convert the final rasters (one for each elevational band) to polygon files using "Raster to Polygon".
... View more
06-30-2014
01:41 PM
|
0
|
0
|
659
|
POST
|
Hello, I am looking for an analogous method to Zonal Statistics that is able to generate user-defined percentiles (such as the 5th and 95th percentile) of the input raster data. I looked at the GME tools and those stats metrics are hardwired in the same fashion as ArcGIS Zonal Statistics tools are. Any other ideas that I can explore?
... View more
06-30-2014
01:35 PM
|
4
|
65
|
28377
|
Title | Kudos | Posted |
---|---|---|
2 | 05-16-2013 09:52 AM | |
1 | 09-20-2013 07:12 AM | |
4 | 06-30-2014 01:35 PM | |
1 | 05-03-2013 07:29 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|