interpolate_missing_data

shocksgo.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 : 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

times with filled-in missing cadences

interpolated_fluxes : numpy.ndarray

fluxes with filled-in missing cadences