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 ReflectanceCorrector (crefl) for MODIS data #1808

Merged
merged 4 commits into from Aug 27, 2021

Conversation

djhoese
Copy link
Member

@djhoese djhoese commented Aug 27, 2021

I apparently misread my original code when porting the crefl code for reading the DEM data. The file used for MODIS (tbase.hdf) has a different variable name and doesn't have a fill value. This PR fixes that.

  • Closes #xxxx
  • Tests added

@djhoese
Copy link
Member Author

djhoese commented Aug 27, 2021

I'm not really sure how to test this...ugh I guess I could rewrite all the tests. Darn it.

@codecov
Copy link

codecov bot commented Aug 27, 2021

Codecov Report

Merging #1808 (b3b4c54) into main (d0bf8c6) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1808   +/-   ##
=======================================
  Coverage   92.94%   92.94%           
=======================================
  Files         265      265           
  Lines       39180    39191   +11     
=======================================
+ Hits        36415    36426   +11     
  Misses       2765     2765           
Flag Coverage Δ
behaviourtests 4.75% <4.54%> (+<0.01%) ⬆️
unittests 93.47% <100.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
satpy/modifiers/_crefl.py 95.61% <100.00%> (+0.33%) ⬆️
satpy/tests/modifier_tests/test_crefl.py 99.53% <100.00%> (+<0.01%) ⬆️

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 d0bf8c6...b3b4c54. Read the comment docs.

@coveralls
Copy link

coveralls commented Aug 27, 2021

Coverage Status

Coverage increased (+0.002%) to 93.424% when pulling b3b4c54 on djhoese:bugfix-modis-crefl into d0bf8c6 on pytroll:main.

Copy link
Member

@mraspaud mraspaud left a comment

Choose a reason for hiding this comment

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

LGTM, although I'm not really familiar with the code I have to say :)

@djhoese
Copy link
Member Author

djhoese commented Aug 27, 2021

Thanks, just needed a second set of eyes on it.

@djhoese djhoese merged commit 55be1bc into pytroll:main Aug 27, 2021
@djhoese djhoese deleted the bugfix-modis-crefl branch August 27, 2021 18:47
simonrp84 pushed a commit to simonrp84/satpy that referenced this pull request Nov 24, 2021
* Fix ReflectanceCorrector (crefl) for MODIS data

* Update crefl tests to include tbase.hdf based tests

* Refactor crefl tests

* Remove duplicate imports from crefl tests
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

3 participants