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
Add limb_correction
keyword argument to MiRS reader
#1621
Conversation
Merge branch 'master' of https://github.com/pytroll/satpy
Codecov Report
@@ Coverage Diff @@
## master #1621 +/- ##
==========================================
+ Coverage 92.35% 92.61% +0.26%
==========================================
Files 254 258 +4
Lines 37409 37746 +337
==========================================
+ Hits 34548 34959 +411
+ Misses 2861 2787 -74
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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 except for the docstring needs some small changes to get formatted correctly as a block of code.
limb_correction
keyword argument to MiRS reader
Oh and do you have plans for a test with this keyword argument? |
I will work on the test for the argument and fix the docstring. |
Remove platform name from parameterize in last test for kwargs because they are not used in that test. Add a test for the NOAA-20 platform when the limb_correction assertions are tested and platform name is tested.
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 job. Would it be possible to combine the two tests on the bottom into one that is parametrized on limb_correction
(you can have multiple parametrize decorators if needed)?
Congratulations 🎉. DeepCode analyzed your code in 146.559 seconds and we found no issues. Enjoy a moment of no bugs ☀️. 👉 View analysis in DeepCode’s Dashboard | Configure the bot |
Thank you! |
Addresses #1601 by adding a limb_correction keyword argument to the reader.
Default: limb_correction for atms sensors is on, but will not be applied when keyword is set to false.
asserts check for limb correction if the sensor is atms and for lack of limb correction if the sensor is not atms.