InputSpectrumModel
- class jwst.combine_1d.combine1d.InputSpectrumModel(ms, spec, exptime_key)[source]
Bases:
objectModel an input spectrum.
- Parameters:
- ms
JwstDataModel,MultiSpecModel, orSpecModel This is used to get the integration time.
- spec
JwstDataModelorSpecModeltable The table containing columns “wavelength” and “flux”. The
msobject may contain more than one spectrum, butspecshould 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.
- ms
- 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