load_model_fit#

mufasa.UltraCube.load_model_fit(cube, filename, ncomp, fittype)[source]#

Load the spectral fit results from a .fits file.

Parameters:
  • cube (SpectralCube) – The spectral cube object to which the fit results will be loaded.

  • filename (str) – Path to the .fits file containing the fitted parameters.

  • ncomp (int) – Number of components in the model.

  • fittype (str) – The keyword that designates the model. Currently available options are ‘nh3_multi_v’ and ‘n2hp_multi_v’.

Returns:

The fitted pyspeckit cube with the loaded model.

Return type:

pyspeckit.Cube