spedas / pyspedas

Python-based Space Physics Environment Data Analysis Software
https://pyspedas.readthedocs.io/
MIT License
149 stars 58 forks source link

Add load routines for Kyoto AE, AL, AU etc. indices #876

Closed jameswilburlewis closed 2 months ago

jameswilburlewis commented 3 months ago

We have a routine for the Kyoto Dst index,. but we should have routines to load the other indices also provided by the Kyoto WDC.

jameswilburlewis commented 3 months ago

It would be great if we had a top-level load routine "load_geomagnetic_indices", that takes the names of the various indices as the "datatypes" argument, then dispatches to the appropriate lower level load routines (kyoto, noaa, gfz, omni, etc) to load the requested data. That way, the user won't have to keep track of which data provider offers which indices....

nickssl commented 3 months ago

I have now added the loading routine for the Kyoto AE indices.

nickssl commented 3 months ago

The Kyoto dst routine does not download a file. This should be modified to work in a similar way to the routine for Kyoto ae indices.

nickssl commented 3 months ago

Modified the Kyoto dst routine to download the data files (which are HTML pages with data in them). This required the addition of a new keyword ("text_only") to the pyspedas download() function because otherwise it would download a binary object.