Batsrus.jl
Fast BATSRUS/SWMF data reading, converting, and visualizing 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.
Prerequisites
- Julia 1.6+
- (Optional) Python and Matplotlib
Installation
using Pkg
Pkg.add("Batsrus")
Usage
See the examples.
Using from Python
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)
Benchmark
See the benchmark in the document.
Author
- Hongyang Zhou - Initial work - henry2004y