Transits module

Transits.transit_depth(R_planet, R_star)

Determines the depth of an exoplanet transit.

Parameters:
  • R_planet – the radius of the planet (in m)

  • R_star (float) – the radius of the star (in m)

Returns:

delta_F

Return type:

float

Transits.transit_impact_parameter(a, i, e, R_star, omega)

Determines the impact parameter of an exoplanet transit.

Parameters:
  • a (float) – the semimajor axis (in m)

  • i (float) – the inclination (in rad)

  • e (float) – the eccentricity

  • R_star (float) – the radius of the star (in m)

  • omega (float) – the argument of pericentre (in rad)

Returns:

b

Return type:

float

Transits.eclipse_impact_parameter(a, i, e, R_star, omega)

Determines the impact parameter of an exoplanet eclipse.

Parameters:
  • a (float) – the semimajor axis (in m)

  • i (float) – the inclination (in rad)

  • e (float) – the eccentricity

  • R_star (float) – the radius of the star (in m)

  • omega (float) – the argument of pericentre (in rad)

Returns:

b

Return type:

float

Transits.total_transit_duration(P, a, R_star, R_planet, i, e, omega, b)

Determines the total duration of an exoplanet transit (in s).

Parameters:
  • P (float) – the orbital period (in s)

  • a (float) – the semimajor axis (in m)

  • R_star (float) – the radius of the star (in m)

  • R_planet (float) – the radius of the planet (in m)

  • i (float) – the inclination (in rad)

  • e (float) – the eccentricity

  • omega (float) – the argument of pericentre (in rad)

  • b (float) – the transit impact parameter

Returns:

t_total

Return type:

float

Transits.flat_transit_duration(P, a, R_star, R_planet, i, e, omega, b)

Determines the flat duration of an exoplanet transit (in s).

Parameters:
  • P (float) – the orbital period (in s)

  • a (float) – the semimajor axis (in m)

  • R_star (float) – the radius of the star (in m)

  • R_planet (float) – the radius of the planet (in m)

  • i (float) – the inclination (in rad)

  • e (float) – the eccentricity

  • omega (float) – the argument of pericentre (in rad)

  • b (float) – the transit impact parameter

Returns:

t_flat

Return type:

float

Transits.total_eclipse_duration(P, a, R_star, R_planet, i, e, omega, b)

Determines the total duration of an exoplanet eclipse (in s).

Parameters:
  • P (float) – the orbital period (in s)

  • a (float) – the semimajor axis (in m)

  • R_star (float) – the radius of the star (in m)

  • R_planet (float) – the radius of the planet (in m)

  • i (float) – the inclination (in rad)

  • e (float) – the eccentricity

  • omega (float) – the argument of pericentre (in rad)

  • b (float) – the eclipse impact parameter

Returns:

t_total

Return type:

float

Transits.flat_eclipse_duration(P, a, R_star, R_planet, i, e, omega, b)

Determines the flat duration of an exoplanet eclipse (in s).

Parameters:
  • P (float) – the orbital period (in s)

  • a (float) – the semimajor axis (in m)

  • R_star (float) – the radius of the star (in m)

  • R_planet (float) – the radius of the planet (in m)

  • i (float) – the inclination (in rad)

  • e (float) – the eccentricity

  • omega (float) – the argument of pericentre (in rad)

  • b (float) – the eclipse impact parameter

Returns:

t_flat

Return type:

float

Transits.eclipse_phase(P, a, R_star, R_planet, i, e, omega, b)

Determines the phases of an exoplanet for which its secondary eclipse starts and ends (centered at 0 or 1).

Parameters:
  • P (float) – the orbital period (in s)

  • a (float) – the semimajor axis (in m)

  • R_star (float) – the radius of the star (in m)

  • R_planet (float) – the radius of the planet (in m)

  • i (float) – the inclination (in rad)

  • e (float) – the eccentricity

  • omega (float) – the argument of pericentre (in rad)

  • b (float) – the impact parameter

Returns:

phase_eclipse_start, phase_eclipse_end

Return type:

float

Transits.eclipse(P, a, R_star, R_planet, i, phase, e, omega, b)

Determines if an exoplanet is in eclipse or not at a given phase.

Parameters:
  • P (float) – the orbital period (in s)

  • a (float) – the semimajor axis (in m)

  • R_star (float) – the radius of the star (in m)

  • R_planet (float) – the radius of the planet (in m)

  • i (float) – the inclination (in rad)

  • phase (float) – the phase of the exoplanet (in rad)

  • e (float) – the eccentricity

  • omega (float) – the argument of pericentre (in rad)

  • b (float) – the impact parameter

Returns:

in_eclipse

Return type:

bool

Transits.transit(P, a, R_star, R_planet, i, phase, e, omega, b, t)

Determines if an exoplanet is in transit or not at a given phase.

Parameters:
  • P (float) – the orbital period (in s)

  • a (float) – the semimajor axis (in m)

  • R_star (float) – the radius of the star (in m)

  • R_planet (float) – the radius of the planet (in m)

  • i (float) – the inclination (in rad)

  • phase (function) – the phase of the exoplanet (in rad)

  • e (float) – the eccentricity

  • omega (float) – the argument of pericentre (in rad)

  • b (float) – the impact parameter

  • t (float) – time (in days)

Returns:

in_transit

Return type:

bool

Transits.main()