lightkurve.periodogram.Periodogram#
- class lightkurve.periodogram.Periodogram(frequency, power, nyquist=None, label=None, targetid=None, default_view='frequency', meta={})[source]#
Generic class to represent a power spectrum (frequency vs power data).
The Periodogram class represents a power spectrum, with values of frequency on the x-axis (in any frequency units) and values of power on the y-axis (in units of flux^2 / [frequency units]).
- Attributes
- frequency
Quantity
Array of frequencies as an AstroPy Quantity object.
- power
Quantity
Array of power-spectral-densities. The Quantity must have units of
flux^2 / freq_unit
, where freq_unit is the unit of the frequency attribute.- nyquistfloat
The Nyquist frequency of the lightcurve. In units of freq_unit, where freq_unit is the unit of the frequency attribute.
- labelstr
Human-friendly object label, e.g. “KIC 123456789”.
- targetidstr
Identifier of the target.
- default_view“frequency” or “period”
Should plots be shown in frequency space or period space by default?
- metadict
Free-form metadata associated with the Periodogram.
- frequency
- __init__(frequency, power, nyquist=None, label=None, targetid=None, default_view='frequency', meta={})[source]#
Methods
__init__
(frequency, power[, nyquist, label, ...])bin
([binsize, method])Bins the power spectrum.
copy
()Returns a copy of the Periodogram object.
flatten
([method, filter_width, return_trend])Estimates the Signal-To-Noise (SNR) spectrum by dividing out an estimate of the noise background.
plot
([scale, ax, xlabel, ylabel, title, ...])Plots the Periodogram.
Prints a summary of the non-callable attributes of the Periodogram object.
smooth
([method, filter_width])Smooths the power spectrum using the 'boxkernel' or 'logmedian' method.
to_seismology
(**kwargs)Returns a
Seismology
object to analyze the periodogram.to_table
()Exports the Periodogram as an Astropy Table.
Attributes
The array of frequency values.
Frequency value corresponding to the highest peak in the periodogram.
Power of the highest peak in the periodogram.
The array of periods, i.e. 1/frequency.
Period value corresponding to the highest peak in the periodogram.
The array of power values.