-
Notifications
You must be signed in to change notification settings - Fork 303
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
More flexible way of passing avhrr_l1b_gaclac reader kwargs to pygac #1237
Conversation
I.e. midnight scanline and missing scanlines
Codecov Report
@@ Coverage Diff @@
## master #1237 +/- ##
==========================================
+ Coverage 90.02% 90.03% +0.01%
==========================================
Files 218 218
Lines 31259 31275 +16
==========================================
+ Hits 28141 28160 +19
+ Misses 3118 3115 -3
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.
Just a comment for now
@ninahakansson If you have time, I'd be pleased if you could review this PR |
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! I like the more flexible use of kwargs. I tested this with
level1c4pps and it works fine.
I see that missing_scanlines are not any longer updated when data are sliced.
I am not sure if it could be a problem. But I agree that is is easier to not have to maintain
it inside satpy.
@ninahakansson Thanks for taking the time! Yes, that's true, at least for the moment. My plan is to remove the missing/midnight scanline attributes from pygac, too. In my opinion it makes more sense that the user computes them if needed. But we can certainly provide a method to compute that in pygac. |
LGTM. Is this ready to merge @sfinkens ? |
@mraspaud Yes please! 🙂 |
Some reader arguments in
avhrr_l1b_gaclac
are directly passed to the corresponding pygac reader, and not used further in the satpy reader. To make the reader more flexible (and to prevent having to change satpy each time the reader signature in pygac changes), collect transitional arguments in**reader_kwargs
and pass them to pygac. It doesn't obfuscate the call, because pygac will complain about invalid keyword arguments.Furthermore, remove handling of derived metadata like midnight scanline and missing scanlines. They can easily be computed by users (via timestamps and qual flags) and so we have less work maintaining them.
flake8 satpy