fit_cube#

mufasa.UltraCube.fit_cube(cube, pcube, fittype, simpfit=False, **kwargs)[source]#

Fit the spectral cube using the specified fitting type.

Parameters:
  • cube – The cube to be fitted.

  • fittype (str) – The type of spectral model to be used for fitting.

  • simpfit (bool, optional) – If True, use a simplified fitting method (cubefit_simp) without pre-processing (default is False).

  • **kwargs – Additional keyword arguments passed to pyspeckit.Cube.fiteach.

Returns:

The fitted pyspeckit cube.

Return type:

pyspeckit.Cube