scopesim.source.source_fields.SpectrumSourceField#

class scopesim.source.source_fields.SpectrumSourceField(field: ~typing.Any, spectra: dict, *, meta: dict = <factory>)#

Bases: SourceField

Base class for source fields with separate spectra (no cube).

Added in version 0.9.0.

__init__(field: ~typing.Any, spectra: dict, *, meta: dict = <factory>) None#

Methods

__init__(field, spectra, *[, meta])

get_corners([unit])

Calculate and return footprint corner points in unit.

Attributes

name

Name of the object (if set).

spectrum

Return single spectrum and ref if only one spectrum in spectra.

spectra

field

meta

get_corners(unit: Unit | str = 'arcsec') ndarray#

Calculate and return footprint corner points in unit.

Added in version 0.10.0: Implemented for all subclasses to refactor in FieldOfView.

property name: str#

Name of the object (if set).

property spectrum: SourceSpectrum#

Return single spectrum and ref if only one spectrum in spectra.