cogeotiff / rio-tiler

User friendly Rasterio plugin to read raster datasets.
https://cogeotiff.github.io/rio-tiler/
BSD 3-Clause "New" or "Revised" License
502 stars 106 forks source link

adding a CountMethod to default pixel selction and including tests #676

Closed mccarthyryanc closed 6 months ago

mccarthyryanc commented 6 months ago

This PR adds a CountMethod to the pixel selection methods. For simplicity, the counts happen over the entire input masked array (all bands), but is indexed to 1 band since all bands would typically have the same counts.