-
Notifications
You must be signed in to change notification settings - Fork 131
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
Cmorize wfde5 #1991
Cmorize wfde5 #1991
Conversation
this looks ready, I added the |
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.
Just applying some new labels to make the status of all open pull requests more clear. Note that the tests on CircleCI and the documentation build must be successful (green) before the label 'approved by technical reviewer' can be applied. |
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 version of the data mentioned in this PR (v1.0) is now deprecated. @mwjury coud you please update the downloading instrustions, the version number (v1.1) accordlingly and check whether your script runs fine on the newest data? Thanks!
@remi-kazeroni cheers, mate! Next time please use the review changes button and ask for changes so that the official review is logged and the merge can not happen unless both you as reviewer and the PR creator agree on changes made/not needed 👍 |
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.
Technical review passed by me, but changes needed for the sci review from comment
I think there is a problem with the calculation of the monthly means. I ran the cmorizer and get for the file "OBS_WFDE5_ground_v1.1-CRU+GPCC_Amon_pr_197901-197912.nc" only one time step. I think the monthly means are overwritten when they are stored in the file. Could you check that again? |
@mwjury, you want to check the calculations of the monthly means for this pull request? I am happy to do the scientific review then. |
@hb326 In the previous version for v1.0 the output was monthly files (one month per file), so I do not understand how you got files for a year. |
Sorry it took so long. @valeriupredoi this should be ready to go (FLAKE8-check failing due to regex, any ideas).
|
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.
For me the cmorizer looks good now. I think, providing the option to get "pr" out as the sum from rainfall flux and snowfall flux is great! I also get 12 (different) months now in the monthly file, and 365 (different) days for the daily files.
import iris | ||
from cf_units import Unit | ||
from esmvalcore.preprocessor import daily_statistics, monthly_statistics | ||
|
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.
When I pulled the branch to test it yesterday, this line was only showing up as
from esmvalcore.preprocessor import monthly_statistics
That made the cmorizer crash, of course. I added the daily_statistics
manually, and then it ran fine.
This is weird. @valeriupredoi, could you check what you get when you pull the branch?
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.
@valeriupredoi: another question I had last week. :)
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.
gimme a few, entering another meeting in 10min (unplanned meetings blegh)
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.
it's possible you pulled a local copy, or that your git cache may be a bit special 😁 Anyway I pulled the branch from remote and that was there all fine, I now merged master
in so all should be tiptop. I'll review it now 👍
Yes! According to https://www.flake8rules.com/rules/W605.html you should write your regex in a raw string, i.e. |
|
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.
good stuff @mwjury - couple minor comments from me 🍺
No :( In this case, fix the code. This really should be a raw string. Alternatively, escape your backslashes. |
Co-authored-by: Valeriu Predoi <valeriu.predoi@gmail.com>
I have just run this cmorizer to put the cmorized data in the obs folder. I realized there is a typo in the |
ouch, totally my bad, sorry - I did notice the last box being unchecked but I thought someone forgot to check it 😁 No need to restore the branch, just do a quick PR with the typo correction and I'll approve it pronto 👍 |
I added a cmorizer for WFDE5 (bias-corrected reconstruction of ERA5). Depends on #1990.
Checklist
It is the responsibility of the author to make sure the PR is ready to review. The icons indicate whether the item will be subject to the 🛠 Technical or 🧪 Scientific review.
New or updated data reformatting script: