Question

Calculating percentiles using RasterStatisticsCalculator or other tool

  • 3 January 2023
  • 1 reply
  • 22 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

Userlevel 1
Badge +11

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

Reply