pytroll / pygac

A python package to read and calibrate NOAA and Metop AVHRR GAC and LAC data
https://pygac.readthedocs.org/
GNU General Public License v3.0
21 stars 27 forks source link

Fix calibration when 3b is totally deactivated #117

Closed mraspaud closed 2 years ago

mraspaud commented 2 years ago

Fully deactivated 3b channel can crash the calibration. This PR fixes this.

This fixes #78 and fixes #22 in principle.

codecov[bot] commented 2 years ago

Codecov Report

Merging #117 (9f30e02) into main (28265cd) will increase coverage by 1.23%. The diff coverage is 97.05%.

@@            Coverage Diff             @@
##             main     #117      +/-   ##
==========================================
+ Coverage   73.94%   75.18%   +1.23%     
==========================================
  Files          30       30              
  Lines        2698     2732      +34     
==========================================
+ Hits         1995     2054      +59     
+ Misses        703      678      -25     
Impacted Files Coverage Δ
pygac/pod_reader.py 63.63% <50.00%> (-0.23%) :arrow_down:
pygac/klm_reader.py 68.11% <100.00%> (+8.71%) :arrow_up:
pygac/reader.py 81.77% <100.00%> (+2.21%) :arrow_up:
pygac/tests/test_klm.py 100.00% <100.00%> (+4.76%) :arrow_up:
pygac/tests/test_reader.py 98.35% <100.00%> (+0.01%) :arrow_up:
pygac/calibration.py 94.73% <0.00%> (+0.52%) :arrow_up:
pygac/lac_klm.py 82.35% <0.00%> (+17.64%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.