Skip to content

JuliaSpacePhysics/PySPEDAS.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PySPEDAS.jl

Build Status

A Julia wrapper around PySPEDAS: Python-based Space Physics Environment Data Analysis Software.

Quick Start

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
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")

DimensionalData.jl support is optional. If it is loaded, TplotVariable can be converted with DimArray(get_data("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.

About

A Julia wrapper around PySPEDAS

Resources

License

Stars

Watchers

Forks

Contributors

Languages