spedas / pyspedas

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

Add Juno plug-in to PySPEDAS #391

Open ericthewizard opened 1 year ago

ericthewizard commented 1 year ago

Just got an email asking about Juno data in PySPEDAS; we should add a plug-in for this. The best route would probably be to use a DAS2 python client, if it exists, to access the data at UIowa:

http://planet.physics.uiowa.edu/das/das2Server

But I'm not sure if a DAS2 client exists yet in Python.

Another option would be to add an interface to Autoplot; I wrote one of these in IDL a long time ago, and I'm sure it would be a lot easier in Python - so this route is definitely doable if a DAS2 client doesn't already exist.

jameswilburlewis commented 1 year ago

Chris Piker has a DAS2 python client!

https://github.com/das-developers/das2py

ericthewizard commented 1 year ago

Some additional details from Jeremy on the Autoplot route:

Autoplot is able to read Juno data at PDS, but when the data is "PDS3" (not PDS4, the new format), it must be configured to read the binary formats by hand which is difficult. See https://pds-ppi.igpp.ucla.edu/search/?t=Jupiter&sc=Juno&facet=SPACECRAFT_NAME&depth=1.

You can get some data through a "Das2Server" U. Iowa (Waves team). See Autoplot's menu bar, then File->Add Plot From->Das2Server, then enter "http://jupiter.physics.uiowa.edu/das/server". Then you can drill down in the the Juno folders to find ephemeris, the WAV data, and some from other instruments as well. For example the Autoplot URI "vap+das2server:http://jupiter.physics.uiowa.edu/das/server?dataset=Juno/WAV/Survey&start_time=2016-06-24T00:00:00.000Z&end_time=2016-06-25T00:00:00.000Z" can be entered in the data address bar at the top. Once data is read into Autoplot, it can be exported into tables for Python.

There is also a mechanism to read data directly into Python via Autoplot which might be useful, see http://autoplot.org/python, but there may be issues with newer versions of Python. I'm planning on returning to that later this spring.

ericthewizard commented 1 year ago

Update: the user who requested Juno data is looking for the following data products:

M_shell, Mag_lat, and Mag_lon data for Juno, Io, Europa, and Ganymede