Skip to content
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

Merged

Conversation

ninahakansson
Copy link
Collaborator

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.

For now save only sun_earth_distance_correction.
Calculate the sun_earth_distance_correction_factor only once.
Copy link
Member

@sfinkens sfinkens left a 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 and miss_lines to the metadata dictionary.

@sfinkens
Copy link
Member

LGTM

Copy link
Member

@sfinkens sfinkens left a 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...

pygac/gac_reader.py Outdated Show resolved Hide resolved
pygac/gac_reader.py Outdated Show resolved Hide resolved
pygac/gac_reader.py Outdated Show resolved Hide resolved
pygac/__init__.py Outdated Show resolved Hide resolved
Copy link
Member

@mraspaud mraspaud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mraspaud mraspaud merged commit 78b1665 into pytroll:master Dec 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants