Fast BATSRUS/SWMF data loading, conversion, and visualization using Julia, successor of VisAnaMatlab.
This package provides the following functionalities:
- Simulation data reader
- 2D/3D region cut from the whole domain
- Interpolation from unstructured to structured data
- Data format conversion to VTK
- Data visualization via Makie, PyPlot, and Plots
For more details, please check the document.
- Julia 1.6+
- (Optional) Python and Matplotlib
using Pkg
Pkg.add("Batsrus")
Please refer to the manual.
In Python, you can easily take advantage of this package with the aid of JuliaCall or PyJulia.
With JuliaCall:
from juliacall import Main as jl
jl.seval("using Batsrus")
file = 'test/example.out'
data = Batsrus.load(file)
With PyJulia:
from julia import Batsrus
file = 'test/example.out'
data = Batsrus.load(file)
See the benchmark in the document.
- Hongyang Zhou - Initial work - henry2004y