Consistent platform id attribute across NAT + HRIT SEVIRI readers #721
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Bugfix
Currently, the SEVIRI L1B Native reader will crash, as it is unable to calibrate IR channels:
AttributeError: 'NativeMSGFileHandler' object has no attribute 'platform_id'
This is because the Native reader stores
platform_id
insideself.mda
whereas the calibration routine expects it asself.platform_id
. The HRIT reader stores this attribute asself.platform_id
.This PR updates the Native reader to store the attribute as
self.platform_id
, thus making both SEVIRI readers consistent and preventing theAttributeError
from occurring.[edit] The method described in issue #722 is a better solution to this.
git diff origin/master -- "*py" | flake8 --diff