multicolorfits.save_rgb_fits#

multicolorfits.save_rgb_fits(savepath, multicolorRGBdat, commonhdr, overwrite=True, annotate=True)[source]#

Write a multicolor RGB cube to a FITS file with the shared WCS header.

Parameters:
  • savepath (str) – Output path (e.g. './fits/composite.fits').

  • multicolorRGBdat (array) – RGB image as returned by combine_multicolor() (shape ny×nx×3).

  • commonhdr (astropy.io.fits.header) – Header supplying the WCS for the output.

  • overwrite (bool) – Passed to astropy.io.fits.writeto.

  • annotate (bool) – If True (default), ensure the header records multicolorfits provenance when it does not already.