API reference

psipy.model.mas Module

Classes

MASOutput(path)

The results from a single run of MAS.

psipy.model.pluto Module

Classes

PLUTOOutput(path)

The results from a single run of PLUTO.

psipy.model.variable Module

Classes

Variable(data, name, unit)

A single scalar variable.

psipy.model.base Module

Classes

ModelOutput(path)

The results from a single model run.

psipy.io.mas Module

Tools for reading MAS (Magnetohydrodynamics on a sphere) model outputs.

Functions

read_mas_file(directory, var)

Read in a single MAS output file.

get_mas_variables(path)

Return a list of variables present in a given directory.

psipy.io.pluto Module

Tools for reading pluto model outputs.

Functions

read_pluto_files(directory, var)

Read in a single variable from a set of PLUTO output files.

get_pluto_variables(directory)

Return a list of variables present in a given directory.

read_pluto_grid(path)

Read in a single PLUTO grid file.

psipy.io.util Module

Functions

read_hdf4(path[, sds_id])

Read a HDF4 file.

read_hdf5(path[, dataset_name])

Read a HDF5 file.