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

Use internal calibration coefficients if available #2

Merged
merged 8 commits into from
Oct 11, 2019
Merged

Use internal calibration coefficients if available #2

merged 8 commits into from
Oct 11, 2019

Conversation

simonrp84
Copy link

This adds support for the internal calibration coefficients (slope and offset) contained in each netCDF4 file as a pair of attributes. If these coefficients are invalid then we fall back onto the pre-defined coefficient set.
For the example images I've tested, the internal and pre-defined coefficients are identical, so this change has no effect. But this might change in the future.

…h between pyspectral and AMI brightness temperature conversion
Copy link
Owner

@djhoese djhoese left a comment

Choose a reason for hiding this comment

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

Thank you!!!!

There are a couple small things that I'd like updated and mentioned in comments. Otherwise the one big thing is: Could you move the IR calibration to a separate method to simplify the code? Could you also then update the tests to make sure they have the appropriate attributes and that both IR calibration modes are tested.

satpy/readers/ami_l1b.py Outdated Show resolved Hide resolved
satpy/readers/ami_l1b.py Outdated Show resolved Hide resolved
@djhoese djhoese merged commit 55798fb into djhoese:feature-ami-reader Oct 11, 2019
djhoese pushed a commit that referenced this pull request Aug 3, 2020
Update local to latest remote
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants