-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
The code snippet below leads to a periodogram with incorrrect values (less than zero, greater than one). An image showing the periodogram is a little lower down and the data used in the example is here.
from __future__ import print_function, division
from astropy.table import Table
from gatspy.periodic import LombScargleFast, LombScargle
import matplotlib.pyplot as plt
import numpy as np
%matplotlib inline
# use seaborn for plot styles
import seaborn; seaborn.set()
s = Table.read('tres_10c.csv')
t = s['BJD_TDB']
mag = s['Source-Sky_C10']
dmag = s['mag_error']
model = LombScargle(Nterms=5).fit(t, mag, dmag)
periods, power = model.periodogram_auto(nyquist_factor=100, oversampling=5)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
