ism3d.xyhelper.maskmoment.momfuncs.findflux

ism3d.xyhelper.maskmoment.momfuncs.findflux(imcube, rmscube, mask=None, projmask=None)[source]

Calculate integrated spectrum and total integrated flux.

Parameters
  • imcube (SpectralCube) – The image cube over which to measure the flux.

  • rmscube (SpectralCube) – A cube representing the noise estimate at each location in the image cube. Should have the same units as the image cube.

  • mask (~numpy.ndarray) – A binary mask array (0s and 1s) to be applied before measuring the flux and uncertainty. This should NOT be a SpectralCube.

  • projmask (~numpy.ndarray) – A second mask array within which to measure the flux and uncertainty. This is normally the 2-D projected mask.

Returns

fluxtab – A 3-column table providing the velocity, flux, and uncertainty.

Return type

Table