-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
binning folded lightcurve does make sense. Unfortunately, there is an existing bug on binning folded lightcurve using Alternatives:
from astropy import units as u
lc_b = lc.fold(period=pg.period_at_max_power).bin(time_bin_size=10*u.miin)
lc_f = lc.fold(period=pg.period_at_max_power)
lc_binsize = (lc_f.time.max() - lc_f.time.min()).value / 500
lc_b = lc_f.bin(time_bin_size=lc_binsize) The binned lightcurve above will have approximately 500 bins, if there is no significant data gap in the data, which is less likely given it's a folded lightcurve. |
Beta Was this translation helpful? Give feedback.
binning folded lightcurve does make sense.
Unfortunately, there is an existing bug on binning folded lightcurve using
bins
parameter. See issue #1271 .Alternatives:
parameter
n_bins
should work. See thebin()
documentation for the diffeerence.One can also bin using
time_bin_size
parameter. E.g., the following will bin the folded lightcurve, with each bin has the duration of 10 minutes in the folded time.