save_best_2comp_fit#
- mufasa.master_fitter.save_best_2comp_fit(reg, multicore=True, from_saved_para=False, lnk21_thres=5, lnk10_thres=5, save_csv=True, save_Scatter3D=True)[source]#
Save the best two-component fit results for the specified region.
- Parameters:
reg (Region) – The Region object containing the cube and fit results.
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.
from_saved_para (bool, optional) – If True, reload parameters from saved files instead of using existing results in memory (default is False).
lnk21_thres (float, optional) – The log-relative-likelihood theshold to select the 2-component model over the 1-component model (default is 5)
lnk10_thres (float, optional) – The log-relative-likelihood theshold to select the 1-component model over the noise model (default is 5)
save_csv (bool, optional) – If True, saves the best two-component fit parameter as a .csv table, along with estimate peak intensity for each component
save_Scatter3D (bool, optional) – If True, saves 3D scatter of the best two-component fit vlsr in position-position-velocity space, color and opacity coded by the estimated peak intensity of each component
- Return type:
None