interpolate_missing_data¶
-
shocksgo.interpolate_missing_data(times, fluxes, cadences=None)[source]¶ Assuming
timesare uniformly spaced with missing cadences, fill in the missing cadences with linear interpolation.Cadences can be passed if they are known.
Parameters: - times : numpy.ndarray
Incomplete but otherwise uniformly sampled times
- fluxes : numpy.ndarray
Flux for each time in
times- cadences : numpy.ndarray, optional
Integer cadence number of each observation.
Returns: - interpolated_times : numpy.ndarray
timeswith filled-in missing cadences- interpolated_fluxes : numpy.ndarray
fluxeswith filled-in missing cadences