Skip to content

Latest commit

 

History

History
68 lines (46 loc) · 2.08 KB

README.md

File metadata and controls

68 lines (46 loc) · 2.08 KB

Batsrus.jl

Build Status License: MIT DOI

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.

Prerequisites

  • Julia 1.6+
  • (Optional) Python and Matplotlib

Installation

using Pkg
Pkg.add("Batsrus")

Usage

Please refer to the manual.

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