lightkurve.LightCurve.fill_gaps#

LightCurve.fill_gaps(method: str = 'gaussian_noise')[source]#

Fill in gaps in time.

By default, the gaps will be filled with random white Gaussian noise distributed according to \(\mathcal{N} (\mu=\overline{\mathrm{flux}}, \sigma=\mathrm{CDPP})\). No other methods are supported at this time.

Parameters
methodstring {‘gaussian_noise’}

Method to use for gap filling. Fills with Gaussian noise by default.

Returns
filled_lightcurveLightCurve

A new light curve object in which all NaN values and gaps in time have been filled.