-
Notifications
You must be signed in to change notification settings - Fork 44
Add ensemble statistics preprocessor and 'groupby' option for multimodel #673
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
Conversation
…grid time; raise for daily data
This function also checks the frequency of the cubes (previously in _datetime_to_int_days), this seems to be a much more logical place. _datetime_to_int_days now simplifies to a one-liner, and can probably be eliminated completely.
|
@Peter9192 Agreed, makes sense. In this case I would suggest to add a note to the documentation about this:
preprocessors:
everything_else: &everything_else
area_statistics: ...
regrid_time: ...
multimodel:
<<: *everything_else
ensemble_statistics:
...
variables:
tas_all_cubes:
short_name: tas
preprocessor: everything_else
...
tas_mmstats:
short_name: tas
preprocessor: multimodel
...Maybe also add a short |
schlunma
left a comment
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.
Great! I tested this preprocessor extensively with this recipe and everything works perfectly! Many thanks!!
I just have some additional comments regarding the doc, afterwards this can be merged 🎉
Co-authored-by: Manuel Schlund <[email protected]>
|
Just wanted to step in and say awesome work here @sloosvel! Thanks for picking up this PR. Also cheers to @schlunma and @valeriupredoi for kicking and reviewing it. Have a nice weekend! |
|
yeah man, I second that! Good weekend too, 30min til pub for me 😁 🍺 |
Co-authored-by: Manuel Schlund <[email protected]>
|
The documentation build fails with a now. This is most certainly not related to this PR. Any tips on this @ESMValGroup/esmvaltool-coreteam? I don't think EDIT: Just realized that the nightly build failed, too, so this is definitely not related to this PR. |
|
I came to the same conclusion as @schlunma regarding the broken intersphinx link. It is possible that we need to change something (see scipy/scipy#14267), but let's wait for a bit until things get clearer. |
schlunma
left a comment
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.
Merging this now since the failing tests are not related to this PR.
Thanks for all your work on this @sloosvel and @Peter9192, this is a great addition to the tool! 🎉
|
Awesome! Also thanks to @stefsmeets for your contributions 👍 |
Link to documentation: https://esmvaltool--673.org.readthedocs.build/projects/ESMValCore/en/673/recipe/preprocessor.html#ensemble-statistics
Tasks
Codacy code quality checks pass. Status can be seen below your pull request. If there is an error, click the link to find out why. If you suspect Codacy may be wrong, please ask by commenting.Please useyamllintto check that your YAML files do not contain mistakesIf you make backward incompatible changes to the recipe format, make a new pull request in the ESMValTool repository and add the link belowCloses #52
Merge first: #685