lightkurve.LightCurve.to_periodogram#
- LightCurve.to_periodogram(method='lombscargle', **kwargs)[source]#
Converts the light curve to a
Periodogram
power spectrum object.This method will call either
LombScarglePeriodogram.from_lightcurve()
orBoxLeastSquaresPeriodogram.from_lightcurve()
, which in turn wrapastropy
’sLombScargle
andBoxLeastSquares
.Optional keywords accepted if
method='lombscargle'
are:minimum_frequency
,maximum_frequency
,mininum_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
LombScarglePeriodogram
orBoxLeastSquaresPeriodogram
.
- Returns
- Periodogram
Periodogram
object The power spectrum object extracted from the light curve.
- Periodogram