-
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
ocean depth fix for cnrm_esm2_1, gfdl_esm4, ipsl_cm6a_lr datasets + mcm_ua_1_0 #1098
Conversation
@schlunma could you please give me a feedback on |
Looks good already! The only thing that's missing is a test of the actual fix, so something like this: ESMValCore/tests/integration/cmor/_fixes/cmip6/test_cesm2.py Lines 228 to 253 in 4e9eb33
and this ESMValCore/tests/integration/cmor/_fixes/cmip6/test_cesm2.py Lines 310 to 325 in 4e9eb33
I think you can just copy-pasting these lines should work! |
No, that should be fine! Just let me know when it's ready for review 👍 |
@schlunma @remi-kazeroni the code is ready for review 🚀 . |
Great stuff! Having a look at it right now! |
Thanks a lot! I'll have a look later today, in particular for 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.
Nice work @tomaslovato, looks really good already!
I have some suggestions to the fix of MCM and its test.
@schlunma I got a bit confused about |
No worries! There are two options here:
fix_omon = Omon(vardef)
fix_allvars = AllVars(vardef)
out_cubes = fix_omon.fix_metadata(thetao_cubes)
out_cubes = fix_allvars.fix_metadata(out_cubes) Option 2 is probably easier to implement, option 1 clearly seperates the two individual fixes. Optimally we would have both tests (i.e. option 1 and 2), but I'm fine with whatever you like to implement. |
I think that for the time being option 2 will be ok, as it applies the fix to thetao including both |
Tests are passing now, thank you really much for the fixes @tomaslovato! 🎉 Would you mind if I push 1-2 commits to this branch directly? I just realized that a test for I will approve afterwards and merge when @remi-kazeroni had the chance to test the fixes. Cheers! |
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.
@remi-kazeroni Please merge when you tested successfully 👍
While working on the The ESMValCore/esmvalcore/cmor/_fixes/cmip6/ipsl_cm6a_lr.py Lines 27 to 47 in 79ee767
After the introduction of cube ESMValCore/esmvalcore/cmor/_fixes/cmip6/ipsl_cm6a_lr.py Lines 41 to 42 in 79ee767
is responsible for trashing both variables and produce an empty cubelist. For me the simplest solution is to modify the if statement as in the following but probably we should also think to remove the creation of the auxcoord 'cell_area' (likely kept in there at the time for some potential use) which is a potentially misleading duplicate of the cube cell_measure property. areacello ipsl_cm6a_lr
|
Good find @tomaslovato! I just pushed a tiny fix for this, please let me know if it works for you! As you said, we do not need the |
@schlunma I re-run the recipe with the modified code and it works great! |
Great! Ready to merge from my side |
@remi-kazeroni, could you please have a quick look? |
Yes, I'm on it. I'm done opening issues and PRs for the Core. It's time to start closing them 🍺 |
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.
Everything looks and works fine! Thanks a lot for your work @tomaslovato 👍 This can be merged
Based on PR #1095 create the ocean depth
mip-level
fixes for other problematic CMIP6 datastest, namely cnrm_esm2_1, gfdl_esm4, ipsl_cm6a_lrCloses #1069 (and also #527 and #1100)
Link to documentation:
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: