save_fit#

mufasa.UltraCube.save_fit(pcube, savename, ncomp, header_note=None)[source]#

Save the fitted parameter cube to a .fits file with the appropriate header.

Parameters:
  • pcube (pyspeckit.Cube) – The fitted parameter cube to be saved.

  • savename (str) – The path where the .fits file will be saved.

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

  • header_note (str, optional) – A single-line comment to include in the FITS header metadata.

Return type:

None