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
- simulation data visualization through multiple plotting libraries
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 PyJulia. After the installation, in the Python repl:
from julia import Batsrus
dir = 'test'
filename = '1d__raw_2_t25.60000_n00000258.out'
data = Batsrus.readdata(filename, dir=dir)
There you have it! Enjoy!
Benchmark
See the benchmark in the document.
Author
- Hongyang Zhou - Initial work - henry2004y
Acknowledgments
- All the nice guys who share their codes!