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
AVHRR CLASS Filename prefix prevents reading with Scene. #2155
Comments
You can add your own filename pattern for these files by:
The other choice is to create a pull-request adding the new pattern to Satpy, but the above will get you ahead faster. The PR is naturally still wellcome :-) |
Thanks for writing back so fast @pnuu ! I am writing tools that will be used by a other people too, so if it could be built in to satpy, that would be convenient. I would be happy to tackle this myself. I have read the contributor guidelines and have satpy-dev set up. Can you tell me what the next steps would be? |
@jeanlucshaw I agree that this can be added to satpy. The only thing you have to do I think is to add an item to the file pattern list here: https://github.com/pytroll/satpy/blob/main/satpy/etc/readers/avhrr_l1b_gaclac.yaml#L185 |
OK I am on it. Should I wait until the pull request is done or close the issue now? |
You can wait and close the issue through the PR (the line |
I am getting a permission error when I try to push my branch, i.e., $ git push origin my-branch As a new contributor, do I need to request an access token? |
You need to fork the repo so that origin points to You do not need any access token to make a pull request based on a branch in your own fork. |
Fixed by PR #2157 . |
Bug description
I am setting up a processing chain for NOAA and MetOp satellite data acquired daily through a subscription with CLASS. These files arrive with a numeric prefix to the typical filename for AVHRR binary data. Satpy's Scene class can read these file if I rename them to remove the numeric prefix, but not if I leave it in place. The error message is: No supported files found.
To Reproduce
Expected behavior
I would expect Scene to either recognize that this is supported file regardless of file name changes, warn that the file name is unexpected but read anyway, or produce an error message specifying that the file name needs to be changed.
Actual results
[DEBUG: 2022-08-01 08:26:57 : satpy.readers.yaml_reader] Reading ('/opt/anaconda3/envs/py37/lib/python3.7/site-packages/satpy/etc/readers/avhrr_l1b_gaclac.yaml',)
[WARNING: 2022-08-01 08:26:57 : satpy.readers.yaml_reader] No filenames found for reader: avhrr_l1b_gaclac
[WARNING: 2022-08-01 08:26:57 : satpy.readers] Don't know how to open the following files {'9304405277.NSS.HRPT.NP.D22209.S0011.E0023.B6941818.MI'}
Screenshots
Environment Info:
The text was updated successfully, but these errors were encountered: