fit_continuum¶
-
specutils.fitting.
fit_continuum
(spectrum, model=<Chebyshev1D(3, c0=0., c1=0., c2=0., c3=0.)>, fitter=<astropy.modeling.fitting.LevMarLSQFitter object>, exclude_regions=None, window=None, weights=None)[source]¶ Entry point for fitting using the
fitting
machinery.Parameters: spectrum : Spectrum1D
The spectrum object overwhich the equivalent width will be calculated.
model: list of `~astropy.modeling.Model`
The list of models that contain the initial guess.
fitmodels_type: str
String representation of fit method to use as defined by the dict fitmodels_types.
window : tuple of wavelengths (NOT IMPLEMENTED YET)
Start and end wavelengths used for fitting.
weights : list (NOT IMPLEMENTED YET)
List of weights to define importance of fitting regions.
Returns: models : list of
Model
The list of models that contain the fitted model parmeters.