convert_to_electrons

sofia_redux.instruments.forcast.stack.convert_to_electrons(data, header, variance=None)[source]

Convert data to mega-electrons per seconds

The following keywords must exist in the header in order to calculate the conversion factor:

  • FRMRATE: frame rate (Hz)

  • EPERADU: electrons/adu

Parameters:
datanumpy.ndarray

data to scale

headerastropy.io.fits.header.Header

FITS header

variancenumpy.ndarray, optional

variance to propagate

Returns:
2-tuple

numpy.ndarray : data in units of mega-electrons per second numpy.ndarray : propagated variance