Data structures¶
- class gerbls.pyDataContainer¶
GERBLS container for photometric data.
- assign(rjd, mag, err)¶
Assign data to the container without making a copy. Warning: this can lead to crashes if the referenced arrays get deallocated.
- Parameters:
rjd (double[::1]) – C-contiguous array of observation times.
mag (double[::1]) – C-contiguous array of fluxes.
err (double[::1]) – C-contiguous array of flux uncertainties.
- err¶
Array of flux uncertainties.
- mag¶
Array of fluxes.
- rjd¶
Array of observation times.
- size¶
Number of data points stored.
- store(rjd_, mag_, err_, convert_to_flux=False)¶
Store data in the container by making a copy.
- Parameters:
rjd (double[:]) – Array of observation times.
mag (double[:]) – Array of fluxes.
err (double[:]) – Array of flux uncertainties.
convert_to_flux (bool) – If True, fluxes are given as relative deviations in the form of
-2.5 * log(flux)and will be converted tofluxbefore storing. By default False.
- class gerbls.pyTarget¶
- L¶
Stellar luminosity in Solar units. Value can be set manually.
- L_comp¶
Luminosity of the binary companion in Solar units. Value can be set manually.
- M¶
Stellar mass in Solar units. Value can be set manually.
- Prot¶
Stellar rotation period. Value can be set manually.
- Prot2¶
Rotation period of the binary companion. Value can be set manually.
- R¶
Stellar radius in Solar units. Value can be set manually.
- Teff¶
Calculated stellar effective temperature.
- copy()¶
Return a copy of the current object.
- estimate_b(P, dur)¶
Estimate the impact parameter from transit observables.
- Parameters:
P (double) – Orbital period (in days).
dur (double) – Total transit duration (in days).
- Return type:
double
- get_aR_ratio(P)¶
Estimate the semi-major axis to stellar radius ratio from transit observables.
- Parameters:
P (double) – Orbital period (in days).
- Return type:
double
- get_inc(P, b)¶
Calculate the inclination angle of an orbit (in degrees).
- Parameters:
P (double) – Orbital period (in days).
b (double) – Impact parameter.
- Return type:
double
- get_transit_duration(P, b)¶
Estimate the total duration of a transit (in days).
- Parameters:
P (double) – Orbital period (in days).
b (double) – Impact parameter.
- Return type:
double
- logg¶
Calculated stellar surface gravity in \(cm/s^2\).
- u¶
A tuple containing the quadratic limb darkening parameters
u1andu2.
- u1¶
First quadratic limb darkening parameter. Value can be set manually.
- u2¶
Second quadratic limb darkening parameter. Value can be set manually.