Explore flox
for improving Xarray's groupby()
performance
#490
tomvothecoder
started this conversation in
3. Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem?
According to Xarray's documentation,
groupby()
andresample()
triggers computation on all blocks which means it loads all data into memory and does not operate on them lazily. This results in a costly operation.This is where
flox
comes along:Describe the solution you'd like
flox
with xCDAT APIsIf performance increases are substantial:
flox
as an xCDAT dependencygroupby()
calls are made internallyDescribe alternatives you've considered
flox
to speed upgroupby
operations, including spatial and temporal averaging.Additional context
One challenge might be that we need to constraint the minimum version of xarray to
>=2022.6.0
because that is whenflox
was first implemented in xarray.Beta Was this translation helpful? Give feedback.
All reactions