add landfrac for icon xpp#3169
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3169 +/- ##
==========================================
+ Coverage 96.26% 96.30% +0.03%
==========================================
Files 280 280
Lines 16258 16252 -6
==========================================
Hits 15651 15651
+ Misses 607 601 -6 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
I would recommend extending the list of automatically added scalar variables here: ESMValCore/esmvalcore/cmor/_fixes/native_datasets.py Lines 33 to 50 in 46124b9 This way, all variables from all models that use It also looks to me like the metadata you use is slightly different to the CMOR tables. For example, ESMValCore/esmvalcore/cmor/tables/cmip6/Tables/CMIP6_coordinate.json Lines 2627 to 2649 in 46124b9 |
schlunma
left a comment
There was a problem hiding this comment.
Thanks Tina, looks great! I think we can actually remove lots of code here (see comments). I also think you can re-add the tests you removed, they should work fine!
I don't think those tests are necessary anymore since I'm not needing any fixes in ICON-XPP when moving these to the native dataset fixes. So they would just bloat? |
|
I would keep them because otherwise we don't test if the scalar coordinates are actually added (and I'm pretty sure the diff coverage won't be 100%). Having too many tests (if they are cheap!) can't hurt 😉 |
Co-authored-by: Manuel Schlund <32543114+schlunma@users.noreply.github.com>
Co-authored-by: Manuel Schlund <32543114+schlunma@users.noreply.github.com>
schlunma
left a comment
There was a problem hiding this comment.
Thanks Tina, looks great now! Tested with ICON-XPP data, everything works as expected. 🚀
Adding land fraction variables to ICON-XPP native reader
Adresses #2695
Before you get started
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: