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

add multiband zonalstats support

Open martijnvermeer92 opened this issue 3 years ago • 0 comments

This PR is supposed to add support for zonal statistics of multiband raster data, similar to the issue raised in #73 . If you for example want to calculate the hue for each zone, this can't be done using the bands separately. I also suggest that the default behaviour changes to using all bands rather than only the 1st band, which seems arbitrary if multiband is supported. In addition to the tests in the tests directory, i have tested with some custom metrics, like hue, for which it seems to work fine. I don't know the details of the implemented tests and default metrics, so it could be some of the metrics don't make sense in the multiband case.

martijnvermeer92 avatar Jul 26 '22 14:07 martijnvermeer92