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:
- spectrumSpectrum1D
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.
- fitter
_FitterMeta
The astropy fitter to use for fitting the model. Default:
LevMarLSQFitter
- exclude_regionslist of 2-tuples
List of regions to exclude in the fitting. Passed through to the fitmodels routine.
- windowtuple of wavelengths
Start and end wavelengths used for fitting.
- weightslist (NOT IMPLEMENTED YET)
List of weights to define importance of fitting regions.
- Returns:
- modelslist of
Model
The list of models that contain the fitted model parameters.
- modelslist of