python-rasterstats icon indicating copy to clipboard operation
python-rasterstats copied to clipboard

Support for multibanded rasters

Open RyanConway91 opened this issue 4 years ago • 1 comments

Hello,

I have ~300 single band rasters with the same geometry (extent, cell size) and a shapefile with ~100000 zones.

Based on current testing, running zonal_stats on all the rasters is going to take several days.

If I could combine the rasters into a single multibanded raster, would the run time be reduced? Does zonal_stats work with multibanded rasters?

RyanConway91 avatar May 28 '21 22:05 RyanConway91

Here's an example that might help you out. You can use the multiprocessing package to speed things up!

debboutr avatar Aug 19 '21 05:08 debboutr