stacked_seds.stacking.save_stacked_fits

stacked_seds.stacking.save_stacked_fits(filename, data, error_map, original_header, zeropoint)[source]

Saves the stacked data and error map to a new FITS file.

Parameters:
  • filename (str) – The output path for the new FITS file.

  • data (np.ndarray) – The 2D stacked image data.

  • error_map (np.ndarray) – The 2D standard error map.

  • original_header (fits.Header) – The header from the original image.

  • zeropoint (float) – The magnitude zeropoint for this band.