A Julia wrapper around PySPEDAS: Python-based Space Physics Environment Data Analysis Software.
using Pkg
Pkg.add("PySPEDAS")Load and plot THEMIS FGM data.
using PySPEDAS
using DimensionalData
trange=["2007-03-23", "2007-03-24"]
# Load THEMIS FGM data for probe A
fgm_vars = pyspedas.projects.themis.fgm(probe='a', trange=trange)
# Print the list of tplot variables just loaded
println(fgm_vars)
# Retrieve the 'tha_fgl_dsl' variable
get_data("tha_fgl_dsl")
# Plot the 'tha_fgl_dsl' variable using PySPEDAS's `tplot` function (`matplotlib`)
pytplot("tha_fgl_dsl")You can load projects into scope for quick access:
using PySPEDAS.Projects
trange=["2020-04-20/06:00", "2020-04-20/08:00"]
# Then you can use them directly
mms.fgm(trange, time_clip=true, probe=2)Each mission is represented as a Project type, which wraps the underlying Python module.
Note
SPEDAS.jl provides a native Julia counterpart with cross-language validation and comparison. See SPEDAS.jl Documentation for more details.