Added various fixes for hybrid height coordinates#562
Conversation
valeriupredoi
left a comment
There was a problem hiding this comment.
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 😬 |
bouweandela
left a comment
There was a problem hiding this comment.
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.
| 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.
| 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.
jvegreg
left a comment
There was a problem hiding this comment.
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,cliandclwdatasets with a hybrid height coordinate.Tasks
yamllintto 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).