Skip to main content
Question

Calculating percentiles using RasterStatisticsCalculator or other tool

  • January 3, 2023
  • 1 reply
  • 90 views

I have a very large (~90 gigapixel) single band geotiff file and a vector layer of ~16m polygons. For each polygon I would like to calculate the 10th percentile of the band of the raster within it and output to a table (e.g. csv).

 

I've set up a Clipper which seems to successfully cut the raster for each polygon and I was hoping to use the RasterStatisticsCalculator to get the 10th percentile. However, percentiles do not appear to be an option. Can anyone suggest how this might be possible please?

1 reply

egge
Contributor
Forum|alt.badge.img+14
  • Contributor
  • January 3, 2023

Just a thought: a PythonCaller with the Python rasterstats module for summarizing geospatial raster datasets based on vector geometries.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings