cwitools.synthesis.whitelight

cwitools.synthesis.whitelight(fits_in, wmask=None, var_cube=None, mask_sky=False, skywidth=None, wavgood=True)

Get white-light image from cube.

Input can be ~astropy.io.fits.HDUList, ~astropy.io.fits.PrimaryHDU or ~astropy.io.fits.ImageHDU. If HDUList given, PrimaryHDU will be used.

Returned objects will be of same type as input.

Parameters:
  • fits_in (astropy HDU / HDUList) – Input HDU/HDUList with 3D data.
  • wmask (list) – List of wavelength tuples to exclude when making white-light image. Use to exclude nebular emission or sky lines.
  • var (Numpy.ndarray) – Variance cube corresponding to input cube
  • mask_sky (bool) – Set to TRUE to mask some known bright sky lines.
  • skywidth (float) – Width of sky lines (Angstrom) for the purpose of masking. Estimated using header info if not provided.
  • wavgood (bool) – Set to TRUE to limit to WAVGOOD region.
Returns:

White-light image + header HDU / HDUList*: Esimated variance on WL image. *Return type matches type of fits_in argument.

Return type:

HDU / HDUList*