CONAN.utils#
Classes#
Functions#
|
Calculate the phase curve of a planet using the Cowan & Agol 2008 model. |
|
convert transit duration to scaled semi-major axis |
|
Get the time of conjunctions (transit and eclipse) for the given time array. |
|
convert scaled semi-major axis to transit duration in days |
|
Compute the transit derived stellar density from the planet period and scaled semi major axis. |
|
Bin data in time. |
|
split t into chunks with gaps larger than gap_threshold*bin_size |
|
convert quadratic limb darkening coefficients between different parameterizations. |
|
convert true stellar density to transit derived density or vice-versa |
|
Calculate the phase curve of a planet approximated by a cosine function from Fmin to Fmax |
|
decontaminate flux F following prescription by eq. 8 of kipping & Tinetti https://doi.org/10.1111/j.1365-2966.2010.17094.x |
|
Calculate the Doppler boosting signal of a planet as a function of phase angle. |
|
This function calculates the prior values and limits for the eccentricity and omega parameters, |
|
Calculate the ellipsoidal variation signal of a planet as a function of phase angle. |
|
Solve Kepler's equation M = E - ecc.sin(E), returning the eccentric anomaly. |
|
|
|
get the transit times of a light curve |
|
Get the time of conjunctions (transit and eclipse) for the given time array. |
|
Get the transit time within a light curve. |
|
Function to convert inclination in degrees to impact parameter b. |
|
Function to convert impact parameter b to inclination in degrees. |
|
Compute the ingress duration of transit or occultation in units of P |
|
Estimate the jitter of a light curve |
|
Compute the mass of a planet from the rv semi amplitude following https://iopscience.iop.org/article/10.1086/529429/pdf |
|
Calculate the phase curve of a planet approximated by a lambertian function. |
|
Corrects the time array for light travel time effects i.e subtracts the light travel time at each time point |
|
Remove outliers using a running median method. Points > clip*M.A.D are removed |
|
Phase fold a light curve. |
|
Rescale an array to the range [0,1]. |
Rescale an array to the range [-1,1]. |
|
|
convert stellar density to semi-major axis of planet with a particular period. |
|
convert stellar density to transit duration in days https://doi.org/10.1093/mnras/stu318 |
Estimate the RMS of a light curve |
|
|
Compute the robust standard deviation using the Median Absolute Deviation (MAD). |
|
Convert sesinw and secosw to eccentricity and argument of periastron in angle_unit |
|
Calculate the sinusoidal function y = A*sin(2*pi*(x-x0)/P) or y = A*cos(2*pi*(x-x0)/P) given the parameters. |
|
Function to split the transits in the data into individual transits and save them in separate files or to remove a certain amount of data points around the transits while keeping them in the original file. |
|
convert transit duration to stellar density in g/cm^3 https://doi.org/10.1093/mnras/stu318 |
|
Calculate the area of overlap between two circles (planet and star) given the impact parameter. |