combine_1d_spectra

jwst.combine_1d.combine1d.combine_1d_spectra(input_model, exptime_key, sigma_clip=None)[source]

Combine the input spectra.

Parameters:
input_modelJwstDataModel

The input spectra. This will likely be a ModelContainer object, but may also be a multi-spectrum model, such as MultiSpecModel or TSOMultiSpecModel. Input spectra may have different spectral orders or wavelengths but should all share the same target. May be updated in place if processing is skipped.

exptime_keystr

A string identifying which keyword to use to get the exposure time, which is used as a weight when combining spectra. The value should be one of: “exposure_time” (the default), “integration_time”, or “unit_weight”.

Returns:
output_modelMultiCombinedSpecModel

A combined spectra datamodel.