refit_2comp_wide#

mufasa.master_fitter.refit_2comp_wide(reg, snr_min=3, method='residual', planemask=None, multicore=True, save_para=True)[source]#

Refit pixels to recover compoents with wide velocity separation for 2-component models.

Parameters:
  • reg (Region object) – A Region object with the cube to be fitted

  • snr_min (float, optional) – Minimum signal-to-noise ratio required for refitting (default is 3).

  • method ({'residual', 'moments'}, optional) – Method used to recover the wide component. ‘residual’ uses the residual cube to recover the wide component, while ‘moments’ uses moment-based guesses (default is ‘residual’).

  • planemask (ndarray, optional) – Mask specifying which spatial pixels to fit (default is None). If not provided, only pixels where the two-component fit is worse than the one-component fit are used.

  • multicore (bool or int, optional) – Number of CPU cores to use for parallel processing (default is True, which uses all available CPUs minus 1). If an integer is provided, it specifies the number of CPU cores to use.

  • save_para (bool, optional) – If True, saves the fit parameters as .fits files after refitting (default is True).

Return type:

None