rechunk along time dim before cal conversion #150
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Solving #149, from ClimateImpactLab/downscaleCMIP6#436.
Interpolation along the
time
dimension was impossible because in production our datasets are chunked alongtime
instandardize_gcm
.I changed
xclim_convert_360day_calendar_interpolate
so that it gathers thetime
chunks if asked to interpolate. It doesn't re-rechunk after that.standardize_gcm
does it anyways.The other option was to
.load()
all the data. My reasoning is that this computation is not large enough to load all that data into memory. But, let me know if my judgment isn't right @brews.I manually tested that this solves the issue with the following snippet of code on my local machine. @brews it seemed to me we're not accounting for chunking in any of our automated tests. Did I miss something ? [EDIT] I think I might missed something which would have caught this -- a version of the function in
services
, interacting withrepository
?