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 size: int

Get the number of stored data points.

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: float

Get or set the stellar luminosity in Solar units.

property L_comp: float

Get or set the luminosity of a stellar companion in Solar units (if applicable).

property logg: float

Calculate the stellar surface gravity in \(cm/s^2\).

property M: float

Get or set the stellar mass in Solar units.

property Prot: float

Get or set the stellar rotation period.

property Prot2: float

Get or set the rotation period of a stellar companion (if applicable).

property R: float

Get or set the stellar radius in Solar units.

property Teff: float

Calculate the stellar effective temperature in K.

property u: tuple

Get a tuple containing the quadratic limb darkening parameters u1 and u2.

property u1: float

Get or set the first quadratic limb darkening parameter.

property u2: float

Get or set the second quadratic limb darkening parameter.

copy(self)

Return a copy of the current object.

Return type:

gerbls.pyTarget

estimate_b(self, double P, double dur)

Estimate the impact parameter from transit observables.

Parameters:
  • P (float) – Orbital period (in days).

  • dur (float) – Total transit duration (in days).

Return type:

float

get_aR_ratio(self, double P)

Estimate the semi-major axis to stellar radius ratio from transit observables.

Parameters:

P (float) – Orbital period (in days).

Return type:

float

get_inc(self, double P, double b)

Calculate the inclination angle of an orbit (in degrees).

Parameters:
  • P (float) – Orbital period (in days).

  • b (float) – Impact parameter.

Return type:

float

get_transit_duration(self, double P, double b)

Estimate the total duration of a transit (in days).

Parameters:
  • P (float) – Orbital period (in days).

  • b (float) – Impact parameter.

Return type:

float