interpolate_missing_data

gadfly.interpolate_missing_data(times, fluxes, cadences=None)[source]

Assuming times are uniformly spaced with missing cadences, fill in the missing cadences with linear interpolation.

Cadences can be passed if they are known.

Parameters
  • times (ndarray) – Incomplete but otherwise uniformly sampled times

  • fluxes (ndarray) – Flux for each time in times

  • cadences (ndarray, optional) – Integer cadence number of each observation.

Returns

  • interpolated_times (numpy.ndarray) – times with filled-in missing cadences

  • interpolated_fluxes (numpy.ndarray) – fluxes with filled-in missing cadences