ModelDynamicSpectrum#

class corona_lab.corona.ModelDynamicSpectrum(value: QuantityLike, unit=None, dtype=<class 'numpy.inexact'>, copy=True, order=None, subok=False, ndmin=0)[source]#

Bases: ModelArray

Class for holding a synthetic dynamic spectrum. Quantitative array with associated metadata, supporting serialization to and from JSON files.

Parameters:
  • value (array-like) – Numeric data array.

  • unit (Quantity or str or Unit) – Unit for the array values. Can be an astropy.units.Unit object, a ~astropy.units.Quantity (unit part is used), or a string parsable by u.Unit.

  • meta (dict, optional) – Initial metadata dictionary. Defaults to an empty metadata container.

meta#

Metadata container for storing arbitrary key–value pairs.

Type:

MetaData

unit#

Physical unit of the array values.

Type:

Unit

value#

Underlying numeric data array.

Type:

numpy.ndarray

Notes

Inherits from ~astropy.units.Quantity, so all Quantity operations apply to ModelDynamicSpectrum instances.

Attributes Summary

Attributes Documentation

ejected_lines#
ejected_mass#
epsilon#
freqs#
light_curve#
phases#
sed#
sigma#
tau#