-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add atmospheric circulation benchmark #1554
Conversation
temdiags = zonal_means.merge(anomaly[["uv", "vt", "uw"]].mean("longitude")) | ||
|
||
# This is incredibly slow, takes a while for flox to construct the graph | ||
daily = temdiags.resample(time="D").mean() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Upstream issue: xarray-contrib/flox#396
This is almost certainly equally slow to set up without flox. Both will create a large number of dask arrays (=number of days in the dataset) apply the reduction, then concatenate.
Co-authored-by: Deepak Cherian <[email protected]>
@dcherian does this look good to include from your perspective? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @jrbourbeau!
# # Users often rework things via a rechunk to make this a blockwise problem | ||
# daily = ( | ||
# temdiags.chunk(time=24) | ||
# .resample(time="D") | ||
# .mean() | ||
# ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you leave this here on purpose?
# # Users often rework things via a rechunk to make this a blockwise problem | |
# daily = ( | |
# temdiags.chunk(time=24) | |
# .resample(time="D") | |
# .mean() | |
# ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, just for future reference in case it's needed. I think keeping for context doesn't hurt. We can always remove it later
xref #1545 (comment)
cc @dcherian @hendrikmakait
EDIT: Here's a run of the "small" version of this test https://cloud.coiled.io/clusters/598243/account/dask-engineering-gcp/information?quick=Just+mine. Takes ~9 minutes and costs ~$0.20