spectrum_from_model¶
- specutils.manipulation.spectrum_from_model(model_input, spectrum)[source]¶
This method will create a
Spectrum1Dobject with the flux defined by calling the inputmodel. All other parameters for the outputSpectrum1Dobject will be the same as the inputSpectrum1Dobject.- Parameters:
- model
Model The input model or compound model from which flux is calculated.
- spectrum
Spectrum1D The
Spectrum1Dobject to use as the model template.
- model
- Returns:
- spectrum
Spectrum1D Output
Spectrum1Dwhich is copy of the one passed in with the updated flux. The uncertainty will not be copied as it is not necessarily the same.
- spectrum