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
Update AGRI for fill values and cailbration LUTs. #2276
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2276 +/- ##
=======================================
Coverage 94.30% 94.30%
=======================================
Files 306 306
Lines 46039 46043 +4
=======================================
+ Hits 43416 43421 +5
+ Misses 2623 2622 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
Looks good, just a couple of comments.
lut = self.get(lut_key) | ||
if lut is None: | ||
lut_key = f'Calibration/{ds_info.get("lut_key", ds_name)}' |
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.
This isn't tested, right?
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.
Yes, it should be tested - the test_ghi_l1.py
file has the cal coefficients stored under Calibration/
. Coverage says it's covered too, so that line must be getting called :)
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.
LGTM
I noticed that the Fengyun-4 readers were not correctly dealing with the fill value, which led to deep space pixels being shown as very bright (as the raw data fill value was
65535
) instead of being filled.This PR correctly applies the fill value. It also updates the selection of the IR calibration LUT from the file, as in some cases the table was stored under
Calibration/
and in other cases it's stored under/
.