InputSpectrumModel

class jwst.combine_1d.combine1d.InputSpectrumModel(ms, spec, exptime_key)[source]

Bases: object

Model an input spectrum.

Parameters:
msJwstDataModel, MultiSpecModel, or SpecModel

This is used to get the integration time.

specJwstDataModel or SpecModel table

The table containing columns “wavelength” and “flux”. The ms object may contain more than one spectrum, but spec should be just one of those.

exptime_keystr

A string identifying which keyword to use to get the exposure time, which is used as a weight; or “unit_weight”, which means to use weight = 1.

Attributes:
wavelengthndarray

Input wavelength.

fluxndarray

Input flux.

flux_errorndarray

Input error on the flux.

surf_brightndarray

Input surface brightness.

sb_errorndarray

Input error on the surface brightness.

dqndarray

Input DQ array.

nelemint

Number of spectral elements.

weightndarray

Weight value for each spectral element.

unit_weightbool

Flag to indicate uniform weights are used.

right_ascensionndarray

RA value for each spectral element.

declinationndarray

Dec value for each spectral element.

namestr

Slit name for the spectrum.

source_idint

Source ID for the spectrum.

source_typestr

Source type for the spectrum.

source_rafloat

Right ascension of the source.

source_decfloat

Declination of the source.

dispersion_directionstr

Dispersion direction for the spectrum.

flux_unitstr

Unit for the flux values.

sb_unitstr

Unit for the surface brightness values.

Methods Summary

close()

Set data attributes to null values.

Methods Documentation

close()[source]

Set data attributes to null values.