BLS results and analyzers¶
- class gerbls.pyBLSAnalyzer¶
BLS results analyzer.
- Parameters:
model (gerbls.pyBLSModel) – BLS model generator.
- P¶
Array of tested orbital periods.
- Type:
np.ndarray
- dchi2¶
Array of best-fit \(\Delta\chi^2\) values for each tested period.
- Type:
np.ndarray
- dmag¶
Array of best-fit transit depths for each tested period.
- Type:
np.ndarray
- dur¶
Array of best-fit transit durations for each tested period.
- Type:
np.ndarray
- f¶
Array of tested orbital frequencies (= 1/period).
- Type:
np.ndarray
- generate_models(N_models, unmaskf=0.005)¶
Identify the top BLS models (periods) in terms of highest \(\Delta\chi^2\) values.
- Parameters:
N_models (int) – Number of models to generate.
unmaskf (float, optional) – The frequencies of any generated models must differ by at least this amount, by default 0.005.
- Return type:
List of gerbls.pyBLSResult
- mag0¶
Array of best-fit out-of-transit flux baselines for each tested period.
- Type:
np.ndarray
- t0¶
Array of best-fit transit midpoint times for each tested period.
- Type:
np.ndarray
- class gerbls.pyBLSResult¶
Fitted BLS model at a specific orbital period.
- Parameters:
blsa (gerbls.pyBLSAnalyzer) – BLS analyzer object.
index (int) – Index of the orbital period stored in the BLS analyzer.
- Variables:
dchi2 (float) – \(\Delta\chi^2\) of the fitted model.
dmag (float) – Transit depth.
dur (float) – Transit duration.
mag0 (float) – Out-of-transit flux baseline.
P (float) – Orbital period.
t0 (float) – Transit midpoint time.
- get_SNR(phot)¶
Calculate the transit SNR from uncertainty in
dmag.- Parameters:
phot (gerbls.pyDataContainer) – Fitted data.
- Return type:
float
- get_dmag_err(phot)¶
Calculate the uncertainty in
dmag(transit depth).- Parameters:
phot (gerbls.pyDataContainer) – Fitted data.
- Return type:
float
- get_transit_mask(t)¶
Determine which of the given input times are in-transit.
- Parameters:
t (ArrayLike) – Array of observation times.
- Returns:
Boolean array with True values corresponding to in-transit data points.
- Return type:
np.ndarray
- r¶
Calculate the planet-to-star radius ratio.
- Type:
float
- snr_from_dchi2¶
An initial estimate of the SNR from \(\textrm{SNR} \approx \sqrt{\Delta\chi^2}\).
- Type:
float