Data structures¶
- class gerbls.pyDataContainer¶
GERBLS container for photometric data.
- property err: numpy.ndarray¶
Get the array of flux uncertainties.
- property mag: numpy.ndarray¶
Get the array of fluxes.
- property rjd: numpy.ndarray¶
Alias of
time.
- property time: numpy.ndarray¶
Get the array of observation times.
- assign(self, double[::1] rjd, double[::1] mag, double[::1] err) void¶
Assign data to the container without making a copy. Data must be time-sorted.
Caution
Crashes may occur if any of the referenced arrays get deallocated.
- Parameters:
rjd (ArrayLike) – C-contiguous array of observation times.
mag (ArrayLike) – C-contiguous array of fluxes.
err (ArrayLike) – C-contiguous array of flux uncertainties.
- store(self, double[:] rjd, double[:] mag, double[:] err, bool convert_to_flux=False)¶
Store data in the container by making a copy. Data must be time-sorted.
- Parameters:
rjd (ArrayLike) – Array of observation times.
mag (ArrayLike) – Array of fluxes.
err (ArrayLike) – Array of flux uncertainties.
convert_to_flux (bool, optional) – If True, fluxes are given as relative deviations in the form of \(-2.5 \log f\) and will be converted to relative fluxes \(f\) before storing. By default False.
- class gerbls.pyTarget¶
A data structure containing information about a target star.
- property L_comp: float¶
Get or set the luminosity of a stellar companion in Solar units (if applicable).
- copy(self)¶
Return a copy of the current object.
- Return type:
- estimate_b(self, double P, double dur)¶
Estimate the impact parameter from transit observables.
- get_aR_ratio(self, double P)¶
Estimate the semi-major axis to stellar radius ratio from transit observables.
- get_inc(self, double P, double b)¶
Calculate the inclination angle of an orbit (in degrees).