Batsrus.jl

BATSRUS/SWMF Data Processor
Author henry2004y
Popularity
5 Stars
Updated Last
3 Months Ago
Started In
February 2020

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