Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 34531

Zonal statistics summarize the values of one raster within the zones of another dataset (either raster or vector) and output the results as a raster (for a single statistic) or table (for multiple statistics).

1 vote

Different area values from Zonal Geometry and Tabulate area

Yes, your results look weird because both approaches are using rasters. One would expect similar decimal accuracy. I did an experiment: converting integer raster to polygon with all environment sett …
FelixIP's user avatar
  • 23.3k
2 votes

Arcpy - process large shapefile in groups of 100 via cursor

I'd create a new short field in original shapefile, e.g. GROUP and populate it using: !FID!//100 and create temporary subset using: for i in range(30): query='"GROUP" = %s' %i arcpy.Select …
FelixIP's user avatar
  • 23.3k
0 votes

Converting data in table created by Zonal Statistics as Table tool back into raster file?

Use lookup in reclassify toolbox to convert your zones raster to floating point raster. Export it ASCII afterwards
FelixIP's user avatar
  • 23.3k
0 votes

Correcting Errors in Height Above Nearest Drainage (HAND) model

Solution you refer to might work on very dense stream network. Obviously it is not your case. I assume that what you call HAND is height above elevation of nearest drainage points downstream, i.e. fi …
FelixIP's user avatar
  • 23.3k
3 votes
Accepted

Zonal statistics 2 ends up causing a fatal error. Is there an alternative?

To solve this you'll need to split your polygons into groups without overlap. It is called graph coloring. To make script below work a)install networkx package and b)run: PolygonNeighbors("POLYGONS", …
FelixIP's user avatar
  • 23.3k
2 votes

Zonal statistics for millions of overlapping polygons in ArcPy?

Convert raster to points Intersect points with polygons, output type POINT Statistics on raster value, using polygon id as case field. You might consider to split the area, if raster too big
FelixIP's user avatar
  • 23.3k
1 vote
Accepted

Using Zonal Statistics As Table for overlapping polygons in ArcPy?

You CAN do it using vectors, 100% agree with others. Anyway, I slightly modified your code, replacing very long names and it works as expected: import arcpy store_buffs = r"D:\Scratch\A30min_weekday. …
FelixIP's user avatar
  • 23.3k
5 votes
Accepted

Too many zones for Zonal Histogram?

If your tif files store integer values you might try tabulate area tool (zones-polygon ids), thus transposing the table. It'll have 4000 rows instead of 4000 columns. If value grids store floating po …
FelixIP's user avatar
  • 23.3k
1 vote

Zonal statistics for millions of overlapping polygons in ArcPy?

Pre-processing: Create fishnet - polygons with extent=extent of overlapping polygons. Calculate field ID = FID. Spatial join overlapping polygons with fishnet polygons using HAVE_THEIR_CENTER_IN. Di …
FelixIP's user avatar
  • 23.3k
9 votes

Major bug in ArcGIS Zonal statistics?

It is a bug. Something terribly wrong with cell count. Correct mean (9.0452380952381) times correct number of non-empty cells (420) divided by 297 (that is a cell count reported by tool) results in 1 …
FelixIP's user avatar
  • 23.3k