-
Notifications
You must be signed in to change notification settings - Fork 300
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
SEVIRI HRIT reading: More userfriendly warning when no EPI/PRO files are present #147
Comments
The other common mistake is to give compressed files. A suitable warning, or a hook to allow decompression, would be useful. |
If |
@sfinkens That sounds reasonable to me. @mraspaud @adybbroe thoughts? SatPy tries to balance usability with a good user experience. A lot of satpy users (at least in my experience) need to generate as many of the products as possible for the data they have available. If one of the products can't be generated then the others should still be generated. In your case, I agree with you that this should raise an error if nothing more can be done. @mraspaud I think we already check to make sure the file types are the same length (or maybe we used to). Maybe we could make sure that they are all the same length and their requirements are all met. |
I gave it a go, trying to find the balance you mentioned. Let me know what you think. |
Code Sample, a minimal, complete, and verifiable piece of code
Problem description
It often happens that a user forgets to copy the EPI and PRO files to the data directory. When instantiating the Scene object you will get a RuntimeError exception as depicted below.
Running with debug info on you will also get some warnings like:
But it is not obvious it comes from the missing prologue and epilogue files.
Expected Output
A warning message saying that this might most probably be due to the missing header/trailer files:
WARNING: No EPI/PRO files found!
Actual Result, Traceback if applicable
Versions of Python, package at hand and relevant dependencies
Python 2.7.5
Satpy 0.7.7
Thank you for reporting an issue !
The text was updated successfully, but these errors were encountered: