sherlockpipe.scoring.AverageSpectrumSignalSelector.AverageSpectrumSignalSelector

class sherlockpipe.scoring.AverageSpectrumSignalSelector.AverageSpectrumSignalSelector

Bases: SignalSelector

Selects the signal with best SNR by summing all the residuals from each detrend search and then computing the SDE.

__init__()

Initialize the average-spectrum signal selector.

Methods

__init__()

Initialize the average-spectrum signal selector.

select(id_run, sherlock_target, star_info, ...)

Select the best signal by averaging the residuals of all detrended searches.

select(id_run, sherlock_target, star_info, transits_min_count, time, lcs, transit_results, wl, cadence)

Select the best signal by averaging the residuals of all detrended searches.

The chi2 residuals from each detrended curve are averaged into a single spectrum, from which the SDE and maximum power period are computed.

Parameters

id_runint

The current SHERLOCK run number.

sherlock_targetSherlockTarget

The target configuration.

star_infoStarInfo

The star information.

transits_min_countint

The minimum number of transits required.

timendarray

The time array of the light curve.

lcsdict

Dictionary of detrended light curve flux arrays.

transit_resultsdict

Dictionary mapping curve indices to TransitResult objects.

wlfloat

The window length used for detrending.

cadencefloat

The cadence of the observations.

Returns

AvgSpectrumSignalSelection

The selection result with the averaged spectrum information.