inject.py
- Transit injection¶
The Inject
class is the model that handles transit injection
and recovery.
-
everest.inject.
Inject
(ID, inj_model='nPLD', t0=None, per=None, dur=0.1, depth=0.001, mask=False, trn_win=5, poly_order=3, make_fits=False, **kwargs)¶ Run one of the
everest
models with injected transits and attempt to recover the transit depth at the end with a simple linear regression with a polynomial baseline. The depth is stored in theinject
attribute of the model (a dictionary) asrec_depth
. A control injection is also performed, in which the transits are injected into the de-trended data; the recovered depth in the control run is stored ininject
asrec_depth_control
.Parameters: - ID (int) – The target id
- inj_model (str) – The name of the
everest
model to run. Default “nPLD” - t0 (float) – The transit ephemeris in days. Default is to draw from the uniform distributon [0.,
per
) - per (float) – The injected planet period in days. Default is to draw from the uniform distribution [2, 10]
- dur (float) – The transit duration in days. Must be in the range [0.05, 0.5]. Default 0.1
- depth (float) – The fractional transit depth. Default 0.001
- mask (bool) – Explicitly mask the in-transit cadences when computing the PLD model? Default
False
- trn_win (float) – The size of the transit window in units of the transit duration
- poly_order (int) – The order of the polynomial used to fit the continuum