-
Notifications
You must be signed in to change notification settings - Fork 45
Simplify time handling in multi-model statistics preprocessor #685
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
Merged
Merged
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
8e914e7
Fix calendar units to 'days since 1850-01-01' on a standard calendar
Peter9192 d6b9947
More thorough check on source time frequency; align behaviour with re…
Peter9192 12f9aa4
Simplify _get_overlap
Peter9192 bf82085
Align behaviour for union (full) and intersection (overlap) of time a…
Peter9192 3bd1e82
Add function to make all cubes use the same calendar.
Peter9192 7841a5f
Remove _datetime_to_int_days, as we can just use the time points
Peter9192 f95aa7c
Simplify and rename _slice_cube
Peter9192 db47522
Align _assemble_overlap_data more with _assemble_full_data
Peter9192 127c69b
Align _assemble_full_data more with _assemble_overlap_data
Peter9192 f873ea5
Futher align assemble full and overlap data
Peter9192 3b7b55b
Merge assemble full and overlap data.
Peter9192 168a701
Further simplify
Peter9192 629a9d6
Remove stuff about bounds and aux coords as it is not used anyway
Peter9192 f538fa8
Remove stuff about bounds and aux coords as it is not used anyway
Peter9192 b0cc1ae
Clean up tests and add tests for new functions
Peter9192 aef2578
Valeriu's suggestions
Peter9192 24294df
fix tests
Peter9192 d3a4ddd
Merge remote-tracking branch 'origin/master' into mmstats_simplify_time
Peter9192 35210a5
Realize data before making time slices
Peter9192 d2fddeb
Avoid codacy 'pointless-statement' message
Peter9192 d028b28
Merge remote-tracking branch 'origin/master' into mmstats_simplify_time
Peter9192 cc51e15
Address Bouwe's comments
Peter9192 7c182a2
Update esmvalcore/preprocessor/_multimodel.py
Peter9192 a663ea6
Don't change the calendar if not necessary
Peter9192 2e363c9
Merge branch 'mmstats_simplify_time' of github.com:ESMValGroup/ESMVal…
Peter9192 c8b5f4b
Use template cube's calendar and don't slice by time
Peter9192 fcb9955
Use num2date rather than cells() method
Peter9192 46337f7
Apply suggestions from code review
Peter9192 4e78224
Merge branch 'mmstats_simplify_time' of github.com:ESMValGroup/ESMVal…
Peter9192 c03358f
fix bug for monthly data in unify time
Peter9192 efa6372
add time bounds to output cube
Peter9192 64bc2fe
Merge remote-tracking branch 'origin/master' into mmstats_simplify_time
Peter9192 bb8e9c5
Add missing var_name attribute to time coordinate
Peter9192 13ac659
Force regrid of daily data and be more consistent with regrid time.
Peter9192 1becb92
Add long name to new time coordinates
Peter9192 2bd2d62
Temporarily bypass coordinate check
Peter9192 7f5ace8
Merge remote-tracking branch 'origin/master' into mmstats_simplify_time
Peter9192 df689b8
Revert "Temporarily bypass coordinate check"
Peter9192 395a675
Update reference data
Peter9192 ccadc6e
Typo
Peter9192 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+6.27 KB
(130%)
tests/sample_data/multimodel_statistics/timeseries_daily_365_day-full-mean.nc
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
tests/sample_data/multimodel_statistics/timeseries_daily_365_day-overlap-mean.nc
Binary file not shown.
Binary file modified
BIN
+6.45 KB
(130%)
tests/sample_data/multimodel_statistics/timeseries_daily_gregorian-full-mean.nc
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
tests/sample_data/multimodel_statistics/timeseries_daily_gregorian-overlap-mean.nc
Binary file not shown.
Binary file modified
BIN
+6.27 KB
(130%)
tests/sample_data/multimodel_statistics/timeseries_daily_proleptic_gregorian-full-mean.nc
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
tests/sample_data/multimodel_statistics/timeseries_daily_proleptic_gregorian-overlap-mean.nc
Binary file not shown.
Binary file modified
BIN
+3.84 KB
(120%)
tests/sample_data/multimodel_statistics/timeseries_monthly-full-mean.nc
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
tests/sample_data/multimodel_statistics/timeseries_monthly-overlap-mean.nc
Binary file not shown.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.