-
Notifications
You must be signed in to change notification settings - Fork 39
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
Added various fixes for hybrid height coordinates #562
Conversation
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.
Holy cheese, there are a lot of fixes here - well done, man! One comment: it would be very useful if we documented proper all funcs in esmvalcore/cmor/_fixes/shared.py
so that they can be used via the API - not necessarily here, but we should have that in mind (open an issue) for the future 🍺
This comment has been minimized.
This comment has been minimized.
7a4c16c
to
8a1efb8
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
0079f85
to
9311e21
Compare
@bouweandela I implemented your suggestion and refactored the code again (hopefully for the last time now). Can you take another look at it? Thanks! |
@bouweandela? Sorry for the hurry, but I really need this for a diagnostic used in Axel's paper 😬 |
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.
Code looks good to me apart from some very minor suggestions, but I would really like a review of @zklaus or @jvegasbsc as well, because I'm no expert on the cf-conventions.
esmvalcore/cmor/_fixes/shared.py
Outdated
return func | ||
|
||
|
||
ALTITUDE_TO_PRESSURE = _get_altitude_to_pressure_func() |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
esmvalcore/cmor/_fixes/shared.py
Outdated
List of cubes which contains the desired coordinate bounds as single | ||
cubes. | ||
coord_var_names : list of str | ||
``var_name``s of the desired coordinates (without suffic ``_bnds`` or |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
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.
As @bouweandela said, code looks good. I am a bit lost with atmosphere hybrid coordinates, so I can not provide any more comments
This PR adds fixes for
cl
,cli
andclw
datasets with a hybrid height coordinate.Tasks
yamllint
to check that your YAML files do not contain mistakesIf you need help with any of the tasks above, please do not hesitate to ask by commenting in the issue or pull request.
Related to #537. (Note: Automatic closing of these issues is not desired; they should be closed when the issue is reported to the modelers).