-
Notifications
You must be signed in to change notification settings - Fork 146
Implement the climwip weighting scheme in a recipe and diagnostic #1648
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
|
I do no longer think that the sea masking is the issue. It seems to be the ESMValTool/esmvaltool/recipes/recipe_climwip.yml Lines 63 to 69 in 10b25f1
If I change this line also to
For this case (including my suggestions above, I get very similar results when comparing the output from the ESMValTool recipe and our implementation: It would still be interesting to understand where the difference comes from, but this is a detail I'm okay with postponing. |
I agree that the masking works fine for the climatology, so detrended_std is causing the issue. Somehow the detrend preprocessor messes with the masking (as already reported here ESMValGroup/ESMValCore#768). But these are problems with the preprocessor functions, not the weighting code as such. |
Updates to the recipe file so that it makes more sense scientifically. Co-authored-by: Lukas Brunner <lukas.brunner@live.at>
…as author and maintainer
|
@lukasbrunner In the last commit I used YAML anchors to condense the recipe a bit. Can you check if you prefer this or not? Otherwise I will revert it. |
I think this is quite neat feel free to leave it like that from my side! |
|
looks good to me too, I like to see the variable groups as examples. if we really wanted to include detrend_std we could do like this: reapplying the ocean mask at the end. but its a bit of a hack and the masking is different because of the different order of operations... |
ruthlorenz
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.
Looks good, works, and will be even better when we figured out the issues with the preprocessors ;-)
|
@ESMValGroup/esmvaltool-coreteam this recipe has a technical approval from @bouweandela and a scientific approval from @ruthlorenz . Can this be merged now? 1 small note is that 'natsort' was added as a dependency after Bouwe's review, but it this looks like a decent package, so I think it should not be a problem. |
bouweandela
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.
The natsort package would also need to be added to package/meta.yml, or the conda package will be broken.

Before you start, read CONTRIBUTING.md and the guide for diagnostic developers.
Please discuss your idea with the development team before getting started, to avoid disappointment later. The way to do this is to open a new issue on GitHub. If you are planning to modify an existing functionality, please discuss it with the original author(s) by tagging them in the issue.
Tasks
yamllintto check that your YAML files do not contain mistakesNew recipe/diagnostic
doc/sphinx/source/recipesfolder and add a new entry to index.rstCloses #1640