xcube-dev / xcube

xcube is a Python package for generating and exploiting data cubes powered by xarray, dask, and zarr.
https://xcube.readthedocs.io/
MIT License
183 stars 19 forks source link

Adding percentiles and sum as aggregation method in get_time_series #878

Open jorritscholze opened 1 year ago

jorritscholze commented 1 year ago

Currently, xcube.core provides various aggregation methods in get_time_series like average, min, max, and count for numerical data. However, the ability to calculate and display percentiles and sum would greatly enhance the analytical capabilities and insights derived from the data.

The implementation of percentiles as an aggregation method could involve extending the existing aggregation functions in xcube.core. Users should be able to specify the desired percentile values (e.g., 25th, 50th, 75th) and apply them to the relevant numerical data columns.

mdespriee commented 12 months ago

+1 The sum is essential for many processes that accumulate over time: precipitation, energy from solar radiation, growing-degree-days, etc.

forman commented 8 months ago

@jorritscholze @mdespriee yes, very useful indeed. Will address this issue asap.