fit_continuum

specutils.fitting.fit_continuum(spectrum, model=<Chebyshev1D(3, c0=0., c1=0., c2=0., c3=0.)>, fitter=<astropy.modeling.fitting.LevMarLSQFitter object at 0x7fe7fea34c90>, 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.

fitmodels_type: str

String representation of fit method to use as defined by the dict fitmodels_types.

windowtuple of wavelengths (NOT IMPLEMENTED YET)

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 parmeters.