spedas / pyspedas

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

hapi interface needs an option to return, rather than print, catalogs #760

Closed jameswilburlewis closed 6 months ago

jameswilburlewis commented 6 months ago

When fetching a large catalog via hapi() (e.g. cdaweb), there can be hundreds or thousands of datasets returned. Printing pages and pages of datasets isn't going to be very useful in an interactive session. It would be better to have the option of returning, rather than printing, the catalog. As it stands now, the catalog output is blowing up the size of our test logs

Also, if we are printing the output, we probably want plain prints rather than logging calls.