sweet

exovetter.sweet.sweet(time, flux, period, epoch, duration, plot=False)[source]

Perform the SWEET test.

The SWEET test checks that the flux out of transit is not well fit by a sine curve at either the proposed orbital period, or half, or twice that. It is a good check for both variable stars and ellopsoidal variation

Parameters:
timefloat array

time of the observations

fluxfloat array

relative flux normalized to zero to fit

periodfloat

period in same units as time

epochfloat

time of transit event in same units as time

durationfloat

transit event duration in units of time

Returns:
result2d numpy array.

columns are amplitude, uncertainty and signal-to-noise. The rows are the fits at half the period, at the period, and twice the period.

Notes

It is the caller’s responsbility to ensure that the inputs are given in consistent units.