IAOCEA / healpix-convolution

Other
1 stars 2 forks source link

aggregating padding mode #35

Closed keewis closed 1 month ago

keewis commented 1 month ago

This adds the mean, minimum, and maximum padding modes as aggregations. Additionally, it also contains code for a median mode, but this is broken because median does not support the where parameter. Fixed by moving to nanreduce, which also allows dask to work properly.

These modes are implemented by searching the neighbours of the padded cells. Depending on how costly this is, we might want to switch to grouping the neighbours of the input cells by the cell ids of the padded cells.