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

Issues with Datetime format for dates past August 23rd 2022 for SUVI-L1b-Fe131 product #102

Open
Alan-Birnbaum opened this issue Aug 15, 2024 · 0 comments

Comments

@Alan-Birnbaum
Copy link

I just really quickly want to say that this package is amazing, and has been a lot of fun to mess around with!

Moving on the issue, I noticed that while trying to plot SUVI data I was getting errors on the format of the date string. I modified the date on the sample code in the solar data sample notebook so my code is as follows: g = goes_nearesttime("2024-05-14 17:00", product="SUVI-L1b-Fe131") which gave me the ValueError below:

ValueError: time data "c20241351601329.fits" doesn't match format "c%Y%j%H%M%S%f.nc", at position 0. You might want to try:
- passing format if your strings have a consistent format;
- passing format='ISO8601' if your strings are all ISO8601 but not necessarily in exactly the same format;
- passing format='mixed', and the format will be inferred for each element individually. You might want to use dayfirst alongside this.

As a test I used the sample code in the SUVI notebook: g = goes_nearesttime("2020-01-04 00:00", product="SUVI-L1b-Fe131") and had success. After some testing I was able to find that any date before August 24th 2022 works, but any date afterwards doesn't.

I'm running a jupyter notebook in VSCode using Python 3.11.9.

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

No branches or pull requests

1 participant