iter_2comp_fit#

mufasa.master_fitter.iter_2comp_fit(reg, snr_min=3.0, updateCnvFits=True, planemask=None, multicore=True, use_cnv_lnk=True, save_para=True, lnk_cnv_thres=10)[source]#

Perform a two-component fit iterantively through two steps. The first step fits the convovle cube use moment-based guesses The second setp fits fits the cube at its native spatial resolution, using the results from the first iteration for guesses.

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

  • snr_min (float, optional) – Minimum signal-to-noise ratio required for attempting fits (default is 3.0).

  • updateCnvFits (bool, optional) – If True, fit the covlved cube first, even if it has been fitted before (default is True).

  • planemask (ndarray, optional) – Mask specifying which spatial pixels to fit (default is None).

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

  • use_cnv_lnk (bool, optional) – If True,

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