Match Object¶
This module defines the Match class that is used in fitting routines.
-
class
smsyn.match.
Match
(*args, **kwargs)[source]¶ -
masked_nresid
(params, **kwargs)[source]¶ Masked normalized residuals
Return the normalized residuals with masked wavelengths excluded
- Args:
- params (lmfit.Parameters): see params in self.model
- Returns:
- array: normalized residuals where self.wavmask == 1
-
model
(params, wav=None, **kwargs)[source]¶ Calculate model
Return the model for a given set of parameters
- Args:
- params (lmfit.Parameters): Parameters object containing at least
- teff, logg, fe, vsini, psf, and spline coefficients
- wav (array): (optional) array of wavelengths at which to
- calculate the model. Useful for generating a more finely sampled model for plotting
**kwargs: extra keyword arguments passed to lib.synth
-
nresid
(params, **kwargs)[source]¶ Normalized residuals
- Args:
- params (lmfit.Parameters): see params in self.model
- Returns:
- array: model minus data divided by errors
-