A Julia wrapper around PySPEDAS: Python-based Space Physics Environment Data Analysis Software.
Load and plot THEMIS FGM data.
using Pkg; Pkg.add("PySPEDAS")
using PySPEDAS
trange=["2007-03-23", "2007-03-24"]
# Load THEMIS FGM data for probe A and return loaded variable names
fgm_vars = pyspedas.projects.themis.fgm(probe='a', trange=trange)
var = get_data("tha_fgl_dsl")
# Plot the 'tha_fgl_dsl' variable using PySPEDAS's `tplot` function (`matplotlib`)
pytplot("tha_fgl_dsl")If DimensionalData.jl is loaded, variables can be converted with DimArray(var).
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.