clean_edges_outlier

tessilator.lc_analysis.clean_edges_outlier(f, MAD_fac=2.0)[source]

Remove spurious outliers at the start and end parts of groups.

The start and end point of each group must have a flux value within a given number of MAD from the median flux in the group. This is done because during data downlinks, the temperature of the sensors can change notably. Therefore the outlying flux points at the group edges are probably from temperature instabilities.

Parameters:
fIterable

The set of normalised flux coordinates

MAD_facfloat, optional, default=2.

The threshold number of MAD values to allow.

Returns:
firstint

The start index for the data string.

lastint

The end index for the data string.