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

Fix negative channel 3A slope calibration coefficient in AVHRR reader #2123

Merged
merged 3 commits into from Jul 29, 2022

Conversation

ninahakansson
Copy link
Contributor

Handle negative slopes for 3A in calibration the same way as for channel 1

  • Closes #xxxx
  • Tests added
  • Fully documented
  • Add your name to AUTHORS.md if not there already

@codecov
Copy link

codecov bot commented Jun 10, 2022

Codecov Report

Merging #2123 (4d88d41) into main (8b5d493) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #2123      +/-   ##
==========================================
- Coverage   93.88%   93.88%   -0.01%     
==========================================
  Files         283      283              
  Lines       43093    43092       -1     
==========================================
- Hits        40458    40457       -1     
  Misses       2635     2635              
Flag Coverage Δ
behaviourtests 4.78% <0.00%> (+<0.01%) ⬆️
unittests 94.53% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
satpy/readers/aapp_l1b.py 89.69% <100.00%> (-0.04%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8b5d493...4d88d41. Read the comment docs.

@coveralls
Copy link

coveralls commented Jun 10, 2022

Coverage Status

Coverage decreased (-0.0001%) to 94.48% when pulling 4d88d41 on ninahakansson:fix_aapp_calibration into 8b5d493 on pytroll:main.

@ninahakansson ninahakansson marked this pull request as ready for review June 10, 2022 14:55
@djhoese
Copy link
Member

djhoese commented Jun 11, 2022

So the original fix was for Channel 2 (at index 1) and this is for 3a (at index 2). Given that it took so long to discover the issue with Channel 2 and that it took an email from Nigel Atkinson, do you @ninahakansson have any idea if any other channels (channel 1?) suffer from this?

@ninahakansson
Copy link
Contributor Author

I think is could in principle also happen to channel 1. So maybe we should just apply it to all visible channels?

@adybbroe
Copy link
Contributor

I think is could in principle also happen to channel 1. So maybe we should just apply it to all visible channels?

Yes, please do that, also just agreed via mail by Nigel Atkinson (NWPSAF)

AAPP treat all visible channels the same
Copy link
Member

@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.

Looks good to me. One question, is it OK for IR bands slopes to be negative?

@gerritholl
Copy link
Collaborator

Is this ready to merge? It seems the codecov failure is due to the total number of lines of code being reduced?

@djhoese djhoese merged commit 3718b65 into pytroll:main Jul 29, 2022
@djhoese djhoese changed the title Fix negative channel 3A slope calibration coefficient Fix negative channel 3A slope calibration coefficient in AVHRR reader Jul 29, 2022
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.

None yet

6 participants