get_convolved_cube#
- mufasa.master_fitter.get_convolved_cube(reg, update=True, cnv_cubePath=None, edgetrim_width=5, paraNameRoot=None, paraDir=None, multicore=True)[source]#
Generate and save a convolved version of the spectral cube for a given region.
- Parameters:
reg (Region) – Region object containing the spectral cube and associated parameters.
update (bool, optional) – If True, regenerates the convolved cube even if it exists. Defaults to True.
cnv_cubePath (str, optional) – File path to save the convolved cube. If None, a default path is generated. Defaults to None.
edgetrim_width (int, optional) – Width of the edge to trim from the cube during convolution. Defaults to 5.
paraNameRoot (str, optional) – Root name for parameter output files. Defaults to None.
paraDir (str, optional) – Directory to store output files. Defaults to None.
multicore (bool or int, optional) – Number of CPU cores to use for parallel processing. Defaults to True.
- Return type:
None
Notes
The convolved cube is saved in the directory specified by paraDir.
Updates the ucube_cnv attribute of the Region object with the convolved cube.