-
Notifications
You must be signed in to change notification settings - Fork 1
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
Use internal calibration coefficients if available #2
Conversation
…h between pyspectral and AMI brightness temperature conversion
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.
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.
…h between pyspectral and AMI brightness temperature conversion
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.