interpolate_missing_data

hardcorr.interpolate_missing_data(times, fluxes, cadences=None)[source] [edit on github]

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
timesnumpy.ndarray

Incomplete but otherwise uniformly sampled times

fluxesnumpy.ndarray

Flux for each time in times

cadencesnumpy.ndarray, optional

Integer cadence number of each observation.

Returns
interpolated_timesnumpy.ndarray

times with filled-in missing cadences

interpolated_fluxesnumpy.ndarray

fluxes with filled-in missing cadences