-
Notifications
You must be signed in to change notification settings - Fork 129
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
CMORizer for JRA-55 #3141
CMORizer for JRA-55 #3141
Conversation
Hi @axel-lauer are you still looking for a science reviewer for this one? I could do this... |
@alistairsellar: Axel is on vacation right now, but I know that he is still looking for a science reviewer for this. So thanks for offering! :) |
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.
Nice work, @axel-lauer! The code looks good to me and all works fine: downloader, formatter, recipe_check_obs. I only have one suggestion for a codacy issue, the others could be ignored. The downloading script follows recommendations on the source server and worked fine for me.
I would have given a technical approval if the tests were still passing but that is no longer the case after the main
branch was last merged into this one. There seems to be an issue with the iris-grib
package. It could be an issue with an upstream package rather than how the package is used in this CMORizer. I will try to take a deeper look next week and report here what I could figure out.
I could get the dependency tests pass locally by adding For the latest version of If I understand correctly, 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.
Hi @axel-lauer looks good for science review. Or at least I'm happy with code (pending response to suggestions) & doc changes (can you link documentation to PR description).
Should science review cover some looking at output files? Presumably I would need to make a new environment to run this, as standard esmvaltool modules (e.g. on Jasmin) won't yet have iris-grib
?
utils.fix_var_metadata(cube, cmor_info) | ||
|
||
# fix z-coordinate (if present) | ||
|
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.
Redundant blank line?
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.
Thanks for the other changes @axel-lauer. Not sure if this one got missed or you want to keep the blank line for a reason? It would now be line 135 that this refers to.
Thanks for bringing this up! I dug a bit deeper and it looks like this Could you possibly test if things work with |
Co-authored-by: Rémi Kazeroni <remi.kazeroni@gmail.com>
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.
Thanks for making changes @axel-lauer. Apart from one outstanding question about a blank line (see above), I think that covers my review, so marking as approved. Great stuff!
Thanks for your review @alistairsellar ! I removed the blank line as suggested. |
@zklaus let's discuss this in ESMValGroup/ESMValCore#2178, it seems this PR is no longer using iris-grib. |
This is correct, I replaced iris-grib with xarray/cfgrib, which is able to distinguish between different level types (in contrast to iris-grib). This makes the code much easier to read and maintain. |
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.
Data downloaded and CMORized on Gadi, thanks
|
||
os.makedirs(downloader.local_folder, exist_ok=True) | ||
|
||
user = os.environ.get("rda-user") |
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.
Authentication methods may have changed on RDA, my login uses my orcid login, so this user, password wasn't working for me. But I commented out all the downloader.login()
(lines 43-56, 64-69) stuff and was able to download fine on Gadi supercomputer.
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.
Had a look at this and it looks good to go
Description
This PR adds downloading and formatting scripts for the JRA-55 reanalysis. JRA-55 data have been provided long ago as ana4mips dataset that is no longer available (or maintained). In order to add new variables, the original JRA-55 data have to be CMORized. The original data are only available as GRIB1.
Note: This PR requires the Python library
cfgrib
to process the GRIB files, e.g.conda install cfgrib
This PR allows processing of the following JRA-55 variables:
Checklist
It is the responsibility of the author to make sure the pull request 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