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 'virr_l1b' reader when slope attribute is 0 #800

Merged
merged 16 commits into from Jun 6, 2019

Conversation

wroberts4
Copy link
Contributor

@wroberts4 wroberts4 commented May 31, 2019

If slope in the file being read is 0, convert slope to 1 (This came about from Longitude in FY3B files).

  • Closes #xxxx
  • Tests added and test suite added to parent suite
  • Tests passed
  • Passes flake8 satpy
  • Fully documented
  • Add your name to AUTHORS.md if not there already

@codecov
Copy link

codecov bot commented May 31, 2019

Codecov Report

Merging #800 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #800      +/-   ##
==========================================
+ Coverage   82.26%   82.27%   +<.01%     
==========================================
  Files         159      159              
  Lines       22998    23003       +5     
==========================================
+ Hits        18920    18925       +5     
  Misses       4078     4078
Impacted Files Coverage Δ
satpy/tests/reader_tests/test_virr_l1b.py 97.19% <100%> (+0.02%) ⬆️
satpy/readers/virr_l1b.py 98.41% <100%> (+0.1%) ⬆️

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 6f1f451...ccdb401. Read the comment docs.

@coveralls
Copy link

coveralls commented May 31, 2019

Coverage Status

Coverage increased (+0.008%) to 82.272% when pulling ccdb401 on wroberts4:master into 6f1f451 on pytroll:master.

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.

I'm guessing by reading this that Slope in the file can either be an array or a single value? Or is the single value (scalar) only coming from your tests?

What happened to what we talked about in person with slope = slope.where(slope != 0, 1)? Would it be cleaner to make a small helper function for this check so it doesn't have to be repeated so many times? Or maybe that's overkill.

@djhoese djhoese changed the title Fix VIRR_L1B slope when 0 Fix 'virr_l1b' reader when variable slope is 0 Jun 3, 2019
@djhoese djhoese changed the title Fix 'virr_l1b' reader when variable slope is 0 Fix 'virr_l1b' reader when slope attribute is 0 Jun 3, 2019
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

5 participants