fit_spectrum¶
-
sitelle.fit.fit_spectrum(spec, theta, v_guess, cube, lines=None, **kwargs)¶ Helper function to simplify fitting, with some default parameters being already set. The underlying method is
orcs.core.HDFCube.fit_lines_in_spectrum.Parameters: - spec (1D
ndarray) – The spectrum containing emission lines - theta (float) – Theta value corresponding to the
spec - v_guess (float) – Velocity guess on the spectrum
- cube (
SpectralCube) – The cube from whichspechas been extracted - lines (str) – (Optional) The lines to fit. Default is set to the main lines contained in the filter of the cube. See sitelle.constants.SN2_LINES and sitelle.constants.SN3_LINES
- kwargs (dict) –
Any additional argumebnts to be passed to
_prepare_input_params. Some are set to default values :Parameter Value fmodel ’sinc’ pos_def ‘1’ signal_range filter_range pos_cov v_guess snr_guess ’auto’ nofilter True
Returns: the performed fit
Return type: fit
- spec (1D