-
Notifications
You must be signed in to change notification settings - Fork 38
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
Extended ICON CMORizer #1549
Extended ICON CMORizer #1549
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1549 +/- ##
==========================================
+ Coverage 91.23% 91.36% +0.12%
==========================================
Files 203 204 +1
Lines 10978 11141 +163
==========================================
+ Hits 10016 10179 +163
Misses 962 962
Continue to review full report at Codecov.
|
Is there anything I can do about that Codacy issue ( |
OK the Codacy issue has been reported before, most recently by @bouweandela and we don't really have a solid fix for it in mind, I reckon we can brush it under the proverbial carpet 👍 |
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.
looking good and a lot of work too, just a couple minor comments from me, of course I couldn't test anything, this was just a walk through the code 🍺
Description
I could get my hands on further ICON data which allowed me to extend the ICON CMORizer (the current version wasn't quite able to read this new data). In particular, the following features have been implemented:
areacello
andsiconc
.air_pressure
coordinates are only added now if possible (i.e., if the corresponding variable is present in the input files).latitude
and notlongitude
by adding checks a laif 'longitude' in self.vardef.dimensions:
before fixing coordinates (and vice versa). In these cases no spatial index coordinate is added.zg
which is time-invariant for ICON but a time dimension is required by CMOR.grid_file_uri
given by each ICON file). If present and not older than 7 days, this downloaded grid file is reused.positive
attribute to variables (based onself.vardef.positive
).air_pressure
coordinate (they were reversed along the trailing dimension).Doc: https://esmvaltool--1549.org.readthedocs.build/projects/ESMValCore/en/1549/quickstart/find_data.html#icon
I tested the CMORizer on the old and new ICON data I have. It works well in both cases. I also added lots of new tests, but the old ones weren't changed.
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.
To help with the number pull requests: