-
Notifications
You must be signed in to change notification settings - Fork 295
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 Gcom-C sgli reader #1094
Add Gcom-C sgli reader #1094
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1094 +/- ##
==========================================
+ Coverage 95.29% 95.32% +0.02%
==========================================
Files 369 371 +2
Lines 52040 52435 +395
==========================================
+ Hits 49591 49982 +391
- Misses 2449 2453 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Rayleigh correction fixed. |
satpy/readers/sgli_l1b.py
Outdated
if key["name"].startswith(("VN", "SW", "P")): | ||
dataset = self.get_visible_dataset(key, dataset) | ||
elif key["name"].startswith("TI"): | ||
dataset = self.get_ir_dataset(key, dataset) | ||
elif key["name"].startswith(("longitude", "latitude")): | ||
dataset = self.get_lon_lats(key) | ||
elif "angle" in key["name"]: | ||
dataset = self.get_angles(key) | ||
else: | ||
raise NotImplementedError() |
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 don't feel very strongly about this, but since code scene is complaining about it, is there a cleaner way to do this? Maybe with a dictionary mapping to functions? That might allow the NotImplementedError to actually be a KeyError which is maybe more clear to the user/log? Either way, maybe an error message should be put in the NotImplementedError?
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'd like to avoid having a dictionary as the list of channels and other dataset will be quite large. I'll just extract the method for now and see what code scene says about it. I'm also changing the NotImplementedError into a KeyError with a message.
I've restarted the RTD build. Looks like it got hung up downloading some intersphinx objects.inv files. |
Ah the pooch documentation site is down. Have to wait until it comes back. |
Looks good now, merging |
Adds a reader for the SGLI data.
TODO:
And the usual: