refit_bad_2comp#

mufasa.master_fitter.refit_bad_2comp(reg, snr_min=3, lnk_thresh=-5, multicore=True, save_para=True, method='best_neighbour', local_bad=True)[source]#

Refit pixels with poor 2-component fits, as determined by the log- likelihood of 2- and 1- compoent fits, using specified 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).

  • lnk_thresh (float, optional) – Log-likelihood threshold used to identify pixels with pad fits (default is -5).

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

  • method (str, optional) – The method used for refitting bad pixels (default is ‘best_neighbour’).

  • local_bad (bool) – If True, include bad pixels found from local-thresholding