PlasmaCalcs.mhd.multifluid.mhd_genrad_tables.GenradTable

class PlasmaCalcs.mhd.multifluid.mhd_genrad_tables.GenradTable(indict, outdict, *, coords=None, comment=None)

Bases: object

single table from genrad file, with some var as a function of T, tauh, or column mass.
indict: dict with length 1
key = independent variable name. Probably ‘temp’, ‘tauh’, or ‘cmass’.
indict[key] = independent variable data
outdict: dict with length 1
key = dependent variable name
outdict[key] = dependent variable data
coords: None or dict of scalars
if provided, assign these coords to self.xtable.
comment: None or str
if provided, any arbitrary comment about this variable.
self will also store self.xtable, an xarray.DataArray, with
name = outdict key
values = outdict values
coords = {xtable[indict key]: indict values}
__init__(indict, outdict, *, coords=None, comment=None)

Methods

__init__(indict, outdict, *[, coords, comment])

init_checks()

init_xtable()

interp(invalues, *[, fill_value])

Attributes

invals

invar

outvals

outvar

init_xtable()
initialize self.xtable.
interp(invalues, *, fill_value='extrapolate', **kw_xarray_interp)
interpolate from self.xtable.interp(**kw_interp).

invalues: values of independent variable. Same units as self.invals.

property invals
independent variable values
property invar
independent variable name
property outvals
dependent variable values
property outvar
dependent variable name