Detrend
Module for detrending lightcurve photometry
- class alderaan.modules.detrend.AutoCorrelationDetrender(litecurve, planets)
- class alderaan.modules.detrend.GaussianProcessDetrender(litecurve, planets)
- detrend(gp_term, nominal_gp_period, minimum_gp_period, transit_mask=None, gap_tolerance=None, jump_tolerance=None, correct_ramp=True, return_trend=False, progressbar=False)
- Arguments
gp_term : str “RotationTerm” or “SHOTerm” nominal_gp_period : float minimum_gp_period : float transit_mask : ndarray gap_tolerance : int jump_tolerance : float correct_ramp : bool return_trend : bool progressbar : bool
- estimate_oscillation_period(min_period=None)
Docstring
- class alderaan.modules.detrend.SimpleDetrender(litecurve, planets)
- clip_outliers(sigma_upper, sigma_lower, mask=None, trend=None, kernel_size=None)
Sigma-clip outliers using astropy.stats.sigma_clip() and a median filtered trend Applies an additional iteration wrapper to allow for masked cadences
- Parameters:
sigma_upper – float upper sigmga clipping threshold
sigma_lower – float lower sigma clipping threshold
mask – array-like, bool (optional) do not reject cadences within masked regions; useful for protecting transits
trend – array-like, float (optional) precomputed model for the trend, e.g. a Keplerian transit lightcurve
kernel_size – int size of the smoothing filter kernel