GUIBRUSHR.General_Constants.FunctionsAndConstants.radvel_g module¶
Credit to radvel software RadVel: The Radial Velocity Modeling Toolkit 10.1088/1538-3873/aaaaa8
- GUIBRUSHR.General_Constants.FunctionsAndConstants.radvel_g.rv_drive(t, orbel)[source]¶
RV Drive :param t: times of observations :type t: array of floats :param orbel: [per, tp, e, om, K]. Omega is expected to be in radians :type orbel: array of floats
- Returns:
(array of floats): radial velocity model
- Return type:
rv
- GUIBRUSHR.General_Constants.FunctionsAndConstants.radvel_g.true_anomaly(t, tp, per, e)[source]¶
Calculate the true anomaly for a given time, period, eccentricity.
- Parameters:
t (array) – array of times in JD
tp (float) – time of periastron, same units as t
per (float) – orbital period in days
e (float) – eccentricity
- Returns:
true anomoly at each time
- Return type:
array
- GUIBRUSHR.General_Constants.FunctionsAndConstants.radvel_g.kepler(Marr, eccarr)[source]¶
Solve Kepler’s Equation :param Marr: input Mean anomaly :type Marr: array :param eccarr: eccentricity :type eccarr: array
- Returns:
eccentric anomaly
- Return type:
array
- GUIBRUSHR.General_Constants.FunctionsAndConstants.radvel_g.timetrans_to_timeperi(tc, per, ecc, omega)[source]¶
Convert Time of Transit to Time of Periastron Passage
- Parameters:
tc (float) – time of transit
per (float) – period [days]
ecc (float) – eccentricity
omega (float) – longitude of periastron (radians)
- Returns:
time of periastron passage
- Return type:
float