fit_gas_lines¶
-
sitelle.fit.fit_gas_lines(z_dim, inputparams, params, lines, V_range, snr_guess=None, silent=False)¶ This function fit lines in a given spectrum. DEPRECATED It has been deisgned to be parallelized, hence the apparent complexity.
Parameters: - z_dim (2D
ndarray) – z_dim[0] contains the spectrum to fit, z_dim[1] containstheta, the incident angle at which the spectrum was recorded - inputparams (
orb.fit.InputParams) – Output fromorcs.core._prepare_input_params - params (dict) – Parameters of the cube, obtained with
orcs.HDFCube.params.convert. - lines (list of str) – Names of the lines to fit (as defined here)
- V_range (1D
ndarray) – The range of velocity to test.s - snr_guess (float) – Signal to Noise ratio guess (Default = None)
Returns: A cube containing at each cell a dict with : - ‘line_spectra’: the fitted line spectra - ‘fit_params’: the fitetd parameters of the lines - ‘chi2’: chi2 list, each element corresponds to a velocity in V_range
Return type: 3D
ndarray- z_dim (2D