henry2004y / Batsrus.jl

BATSRUS/SWMF Data Processor

Home Page:https://henry2004y.github.io/Batsrus.jl/dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Batsrus.jl

Build Status License: MIT DOI

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

About

BATSRUS/SWMF Data Processor

https://henry2004y.github.io/Batsrus.jl/dev/

License:MIT License


Languages

Language:Julia 100.0%