lightkurve.LightCurve.to_periodogram#
- LightCurve.to_periodogram(method='lombscargle', **kwargs)[source]#
Converts the light curve to a
Periodogrampower spectrum object.This method will call either
LombScarglePeriodogram.from_lightcurve()orBoxLeastSquaresPeriodogram.from_lightcurve(), which in turn wrapastropy’sLombScargleandBoxLeastSquares.Optional keywords accepted if
method='lombscargle'are:minimum_frequency,maximum_frequency,minimum_period,maximum_period,frequency,period,nterms,nyquist_factor,oversample_factor,freq_unit,normalization,ls_method.Optional keywords accepted if
method='bls'areminimum_period,maximum_period,period,frequency_factor,duration.- Parameters
- method{‘lombscargle’, ‘boxleastsquares’, ‘ls’, ‘bls’}
Use the Lomb Scargle or Box Least Squares (BLS) method to extract the power spectrum. Defaults to
'lombscargle'.'ls'and'bls'are shorthands for'lombscargle'and'boxleastsquares'.- kwargsdict
Keyword arguments passed to either
LombScarglePeriodogramorBoxLeastSquaresPeriodogram.
- Returns
- Periodogram
Periodogramobject The power spectrum object extracted from the light curve.
- Periodogram