-
Notifications
You must be signed in to change notification settings - Fork 300
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
Fix the handling of AMVs unit to units by applying suggestion in #2898 #3031
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3031 +/- ##
==========================================
- Coverage 96.12% 96.11% -0.02%
==========================================
Files 383 383
Lines 55577 55577
==========================================
- Hits 53424 53416 -8
- Misses 2153 2161 +8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Pull Request Test Coverage Report for Build 12793012035Details
💛 - Coveralls |
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.
Thanks for this @YouvaEUMex. I've left one comment in line. I would also suggest removing the _get_global_attributes
method in FciL2NCAMVFileHandler
and instead add a check in the corresponding method in FciL2CommonFunctions
to add the channel information in case of reading AMV data.
I
…hough the loop when reading amvs
…ince it is now covered by the one in the common function
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.
I suggest three minor changes on the updated code.
As describved in #2898, the AMV datasets returned by the fci_l2_nc reader contain the attribute unit, rather than units, which is the CF naming convention. This is an inherited issues since the FCI L2 NetCDF files use the unit attribute, which is then read and used by the reader.
This PR apply the work around developed for other FCI L2 product file handler to the AMVs.
To that extend it slightly refactor FciL2CommonFunctions._set_attributes to handle the AMVs product (not pixels nor segmented) and change slightly the interface to the segmented( that is also changed in the dedicated
get_dataset
)The changes are already described in #2898