sorcha_addons.lightcurve.sinusoidal.sinusoidal_lightcurve
Classes
Assumes a sinusoidal lightcurve in magnitude space with a given period and lightcurve amplitude. |
Module Contents
- class SinusoidalLightCurve(required_column_names: List[str] = ['fieldMJD_TAI', 'LCA', 'Period', 'Time0'])[source]
Bases:
sorcha.lightcurves.base_lightcurve.AbstractLightCurveAssumes a sinusoidal lightcurve in magnitude space with a given period and lightcurve amplitude. The observation dataframe provided to the
computemethod should have the following columns:FieldMJD_TAI- time of observation.LCA- lightcurve amplitude [magnitudes].Period- period of the sinusoidal oscillation [days]. Should be a positive value.Time0- phase for the light curve [days].
- compute(df: pandas.DataFrame) numpy.array[source]
Computes a sinusoidal light curve given the input dataframe
- Parameters:
df (pd.DataFrame) – The
observationsdataframe provided bySorcha.- Returns:
Numpy array of with shape equal to the input dataframe “FieldMJD” column. Values are changes to the magnitude.
- Return type:
np.array