I'm helping a researcher who is evaluating the pixel statistics of Night Light data by admin zone. She wants to calculate (along with normal zonal stats) the 5th and 95th percentile values for pixels in the raster by zone.
Given a raster with an attribute table, this would seem easy enough to accomplish but I can't figure out how to do this without tackling a conversion of the raster to points to allow for a spatial join between pixel values and admin ids before exporting to a table. Not practical for a global raster dataset.
Any help is appreciated.