Getting started

This documentation assumes basic familiarity with the Box Least Squares (BLS) algorithm. The BLS method was originally described by Kovács et al. [1], and a brief summary can be found in the AstroPy user guide. GERBLS relies on a fast-folding implementation of BLS, which comes with a couple of specific quirks compared to the original BLS algorithm [1]. These are described below.

Things to know about GERBLS

The BLS test statistic

The BLS periodograms generated by GERBLS use a reformulated goodness-of-fit statistic. Instead of the “Signal Residue” (SR) or “Signal Detection Efficiency” used by Kovács et al. [1], GERBLS calculates the \(\Delta\chi^2\) statistic defined by eq. A6 of Burke et al. [2]. Specifically, \(\Delta\chi^2\) is the improvement in \(\chi^2\) between a best-fit boxcar model (with a transit) and a constant-flux model (no transit). As shown by [2], \(\Delta\chi^2\) is related to the Signal Residue via \(\Delta\chi^2 / \sum_k \sigma_k^2 = (\textrm{SR})^2\). If one assumes constant Gaussian noise, i.e. \(\sigma_k = const.\) then the effective signal-to-noise ratio (SNR) of the light curve is equal to \(\textrm{SNR} = \sqrt{\Delta\chi^2}\). Therefore, \(\sqrt{\Delta\chi^2}\) can often serve as a reasonable first-order approximation of the transit SNR, although the true SNR will be lower in the presence of correlated noise that has not been successfully detrended.

The period grid

Unlike a brute-force implementation of BLS, the fast-folding [3] [4] approach of GERBLS does not provide an easy way to directly manipulate the period array of the BLS periodogram. This is due to the period sampling not being exactly evenly spaced in orbital frequency or period (although locally, the period grid is approximately evenly sampled in orbital frequency). However, the minimum and maximum search periods can still be directly defined, and the number of periods searched can be affected via the time sampling rate of the input data. GERBLS provides an easy way to specify the desired time sampling when setting up the BLS (longer-cadence data = fewer periods searched). Furthermore, longer orbital periods are relatively more computationally expensive to search; GERBLS can automatically downsample the data at longer periods to further speed up the BLS while not sacrificing higher period resolution at shorter orbital periods where errors in the calculated period accumulate more over the entire time span of the light curve.

Two ways to run GERBLS

Basic usage

Basic usage consists of a single function that generates a BLS periodogram. It is set up to be a convenient alternative to astropy.timeseries.BoxLeastSquares.autopower() with similar function parameters. However, it only produces a simple periodogram (a set of output arrays), and it omits much of the advanced functionality options implemented in GERBLS. It is designed to be a quick-start option. For specific instructions, see Basic usage.

Full usage

See Fast BLS demonstration.

Literature references