-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
get_goes_event_list doesn't return for TimeRange > several months #40
Comments
Here's a NOAA site for events that is more up to date, but doesn't stretch back as far: ftp://ftp.ngdc.noaa.gov/STP/swpc_products/daily_reports/solar_event_reports/ |
After contacting some people at NOAA, it looks like there's no super clean way to do this but it's not that bad either. The interface in sunpy will be clean. On the backend,
NGDC ftp: ftp://ftp.ngdc.noaa.gov/STP/space-weather/solar-data/solar-features/solar-flares/x-rays/goes/xrs/ SWPC ftp: ftp://ftp.swpc.noaa.gov/pub/indices/events/ |
This comment has been minimized.
This comment has been minimized.
@jmason86 - All that data is up to date in HELIO Event Catalog - SunPy has an interface to load them, but it's not too intuitive. (Oh... and it seems you can only do time queries :( ) - in any case, we should make a fido like to query HELIO, HEK, etc... |
Ooh, that's a nice reference! |
@jmason86 - I tested the The following query to the HEK
completed in around 5 minutes, with 6290 entries in For sanity, I manually checked the run time of the loop in the
It completed almost instantly, so that's not a source of delay. It seems to be entirely down to how long the HEK response takes. For some reason, the request to the HEK also seems prone to hang/timeout. I have no idea as to why, unfortunately. |
get_goes_event_list queries the HEK. @Cadair says that the HEK doesn't seem to do well with
TimeRange
values measured in large numbers of months. I've presently been waiting 16 hours for the event list return for a 4 year time range for flares > C1.0 (I assume it is actually hung). The equivalent method (rd_gev.pro) in IDL solarsoft returns in a few seconds for the same inputs. That implementation predates the HEK's existence by a couple decades. It requires that your local solarsoft database includes the GOES events files, so to stay up to date, your system would need to be running sswdb update periodically.But there is another way. NOAA posts the event list directly on their site. I note that at the moment, it hasn't been updated in 6 months though. I'm asking around to see if there's another site. Scraping this site, of course, would not have a guarantee of long-term reliability as evidenced by the fact that my bookmark to the page was out of date just now and it did not redirect me to the link above. Still, scraping should be much quicker than going through the HEK. So this new feature could be an alternative implementation that triggers on, e.g., a timeout, try/catch, or by user specified kwarg.
Implementation parsing note:
The format that NOAA uses for the date in those files is very wonky. An example: 31777170628, which seems to be
[31777] = some sort of static identifier
[170628] = 2017-06-28
The text was updated successfully, but these errors were encountered: