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 for FileNotFoundError when there is no GOES data. #106

Merged
merged 6 commits into from
Oct 25, 2024

Conversation

ifscript
Copy link
Contributor

Hi

I've coded an option to ignore FileNotFoundError errors raised by the S3FileSystem.ls() function. The error occurs because the goes2go library assumes to find a folder for each hour of the day, but due to satellite outages or similar events, some folders are missing.

This fixes issue #93 and addresses the discussion #86

This issue has bothered me several times and I hope my fix is up to standard. If not, I'd love it if you implement something similar.

Added option to ignore missing directories due to satellite outages.
Added option to ignore FileNotFoundError due to satellite outages.
Added support in config to ignore_missing for satellite outages.
Added further support for ignore_missing.
ignore_missing = true for timerange
Minor readability improvement.
@blaylockbk
Copy link
Owner

Thanks for the PR. Looks great. I like that you added the option to the default config file, too.

I'll merge this now, but do you have a specific date that was problematic? It would be nice to eventually add a test for this case.

@blaylockbk blaylockbk merged commit 613c15b into blaylockbk:main Oct 25, 2024
7 of 8 checks passed
@ifscript
Copy link
Contributor Author

Hi, thanks for merging.

One example would be the 6th January 2020, which is also mentioned in #86.

For the summer months JJA 2020 to 2022 the days with missing data are:

  • 2020: 155-156, 208-209, 224
  • 2021: 180, 202
  • 2022: 241

The latter two dates are specially interesting, because only a part of the channels are missing, mostly during 17-18 UTC. This leads to missing data in the L2 products.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants