-
Notifications
You must be signed in to change notification settings - Fork 27
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 meta_data dictionary to reader class. #41
Add meta_data dictionary to reader class. #41
Conversation
For now save only sun_earth_distance_correction. Calculate the sun_earth_distance_correction_factor only once.
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.
Good idea, and nice work! Just two minor comments:
- Could you please compute the factor in a separate method and add a unit test for that?
- I think you could also add
midnight_scanline
andmiss_lines
to the metadata dictionary.
LGTM |
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.
Great, thanks! Only a couple of nitpicks...
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
Calculate the sun_earth_distance_correction_factor only once.
Add it to meta_data dictionary in reader class.
For now meta_data contain only sun_earth_distance_correction_factor.
But the idea (Martin's) is that updating some attributes in pygac in
the future should not always require a PR to satpy.
PR will solve issue #40.