smurfs.Periodogram¶
-
class
Periodogram
(frequency, power, nyquist=None, targetid=None, default_view='frequency', meta={})[source]¶ Custom Periodogram class, fit to the needs of smurfs. Mirrors the behaviour of the Lightkurve Periodogram class, and is derived from it. See https://docs.lightkurve.org/api/lightkurve.periodogram.Periodogram.html#lightkurve.periodogram.Periodogram for documentation on the constructor parameters.
This class differs from the Lightkurve Periodogram class through two aspects: 1) It adds a different static method, that converts a Lightcurve object into a periodogram. 2) The plotting and saving of data has been adapted to fit the needs of smurfs
-
static
from_lightcurve
(lc, f_min=None, f_max=None, remove_ranges=None, samples_per_peak=10)[source]¶ Computes a periodogram from a Lightcurve object and normalizes it according to Parcivals theorem. It then reflects the physical values in the Light curve and has the same units. It then returns a Periodogram object.
It also has a possibility to remove certain ranges from the periodogram. :type lc:
LightCurve
:param lc: Lightcurve object :param f_min: Lower range for the periodogram :param f_max: Upper range for the periodogram :type remove_ranges:Optional
[List
[Tuple
[float
]]] :param remove_ranges: List of tuples, that represent areas in the periodogram that are ignored. These are removed from the periodogram :param samples_per_peak: number of samples per peak :return: Periodogram object
-
static