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 viirs sdr reader to allow ivcdb files in the sdr directory #731

Merged
merged 3 commits into from Apr 25, 2019

Conversation

adybbroe
Copy link
Contributor

@adybbroe adybbroe commented Apr 23, 2019

CSPP (and IPOPP) may output Dual Gain calibration files with the prefix IVCDB. As of now, when having these files in the directory together with the other SDR files, satpy fails with a KeyError

CSPP version 3.2 will output these files on default.

  • Closes #xxxx
  • Tests added
  • Tests passed
  • Passes git diff origin/master -- "*py" | flake8 --diff
  • Fully documented

adybbroe and others added 3 commits April 11, 2019 20:47
Bring my fork up to date
Bring my fork up to date
…rectory

Signed-off-by: Adam Dybbroe <Adam.Dybbroe@smhi.se>
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.

My initial reaction is that users should be providing files that can't be read by the reader. However, it is also the readers fault for matching files that is doesn't know how to read. However (again), the VIIRS SDR reader is a pretty special case.

@mraspaud can this be updated to not have a KeyError if it doesn't understand one of the file types? I'm ok adding what @adybbroe has so far, but can we make it so things don't completely die?

@mraspaud
Copy link
Member

Yes, I was wondering about it also, but I don't think we have a way of gracefully failing the filehandler init...

@djhoese
Copy link
Member

djhoese commented Apr 23, 2019

Ah ok, sounds good.

@codecov
Copy link

codecov bot commented Apr 23, 2019

Codecov Report

Merging #731 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #731   +/-   ##
=======================================
  Coverage   80.02%   80.02%           
=======================================
  Files         147      147           
  Lines       21498    21498           
=======================================
  Hits        17203    17203           
  Misses       4295     4295
Impacted Files Coverage Δ
satpy/readers/viirs_sdr.py 85.02% <ø> (ø) ⬆️

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 1849b17...d6ab8b4. Read the comment docs.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 80.021% when pulling d6ab8b4 on adybbroe:fix-viirs-sdr-reader-ivcdb into 1849b17 on pytroll:master.

@djhoese djhoese merged commit 5fee138 into pytroll:master Apr 25, 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

4 participants