combine_1d_spectra
- jwst.combine_1d.combine1d.combine_1d_spectra(input_model, exptime_key, sigma_clip=None)[source]
Combine the input spectra.
- Parameters:
- input_model
JwstDataModel The input spectra. This will likely be a
ModelContainerobject, but may also be a multi-spectrum model, such asMultiSpecModelorTSOMultiSpecModel. 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”.
- input_model
- Returns:
- output_model
MultiCombinedSpecModel A combined spectra datamodel.
- output_model