exoiris.tsdata.TSData.create_white_light_curve

exoiris.tsdata.TSData.create_white_light_curve#

TSData.create_white_light_curve(data=None) → ndarray[source]#

Create a white light curve.

The white light curve is the inverse-variance weighted average of the spectroscopic light curves over wavelength. Non-finite values are ignored, and an exposure without any valid values is NaN.

Parameters:

data – A 2D array with the same shape as the flux array to average instead of the fluxes, such as a model or residual array.

Returns:

The white light curve as a 1D array with one value per exposure.

Return type:

ndarray

Raises:

ValueError – If the shape of data does not match the shape of the flux array.