copy_spec_metadata
- jwst.datamodels.utils.flat_multispec.copy_spec_metadata(input_model, output_model)[source]
Copy spectral metadata from the input to the output spectrum.
Values to be copied are any attributes of the input model, other than “meta” or “spec_table”, e.g. “source_id”, “name”, etc.
- Parameters:
- input_model
JwstDataModelor ObjectNode A spectral model, such as
SpecModelorTSOSpecModel. If read in from a list of spectra, as inMultiSpecModel, the input model may be an ObjectNode rather than a fullJwstDataModel.- output_model
JwstDataModel A spectral model, such as
SpecModelorTSOSpecModel. Updated in place with metadata from the input model. The output model must be a fullJwstDataModel, not an ObjectNode.
- input_model