PlasmaCalcs.mhd.multifluid.mhd_genrad_tables.GenradTable
- class PlasmaCalcs.mhd.multifluid.mhd_genrad_tables.GenradTable(indict, outdict, *, coords=None, comment=None)
Bases:
objectsingle 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 nameoutdict[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, withname = outdict keyvalues = outdict valuescoords = {xtable[indict key]: indict values}- __init__(indict, outdict, *, coords=None, comment=None)
Methods
__init__(indict, outdict, *[, coords, comment])init_checks()interp(invalues, *[, fill_value])Attributes
- 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