<p>For this, you should create a lightcurve, a graph of brightness over time, to view the data. For Kepler data, the bjd(date) column is the time in <a href="https://en.wikipedia.org/wiki/Barycentric_Julian_Date" rel="nofollow">BJD</a>. The dtr_flux stands for detrended flux, meaning that it should contain "cleaned" data.</p>

<p>First, I would plot the dtr_flux column over bjd(time) to obtain a lightcurve. Depending on the type of eclipsing binary, you should see a minimum and maximum dip occurring periodically. The data also contains a "phase" column, meaning the data has been "folded" to allow you to plot each cycle of the eclipsing binary on top of each other. See <a href="http://www.southampton.ac.uk/~sdc1g08/BinningFolding.html" rel="nofollow">http://www.southampton.ac.uk/~sdc1g08/BinningFolding.html</a></p>

<p>After that, you can take the FFT if you wish. Remember that since this is an eclipsing binary with both maximum and minumum brightness dips, the FFT will have a spike both at P and P/2.</p>

CC BY-SA 3.0
2016-10-27T03:52:33.553Z
So I got the plot of bjd vs dtr_flux as http://imgur.com/gallery/3ZFNW. I tried taking the FFT of this, but all the values are coming imaginary except the max value which is coming as  6.0836e+04. What is the problem here?
ruskin23
CC BY-SA 3.0
2016-10-27T14:22:15.493Z
@ruskin23 [That is to be expected](http://stackoverflow.com/questions/10304532/why-does-fft-produce-complex-numbers-instead-of-real-numbers). It sounds to me like you should go back and study exactly what an FFT is and how it works to get a better understanding of your results. What's more, you should probably disclude fitting the gap in your data as that will throw off your results to some degree.
zephyr
CC BY-SA 3.0
2016-10-28T17:00:15.537Z
The FFT assumes that the samples used are sampled at regular intervals. It  will not work with irregularly sampled data.
Conrad Turner
CC BY-SA 3.0
2016-10-27T03:16:31.103Z
2016-10-27T03:16:31.103Z
AstronomyGeek
<p>I am trying to use <a href="http://keplerebs.villanova.edu/" rel="nofollow">Kepler Data for Eclipsing Binaries</a> to estimate time period, and then other parameters such as mass, eccentricity, semi-major axis, distance, etc. of the system. I want to write code in MATLAB which will use FFT. The available data has the following columns:</p>

<p>bjd(date) | phase | raw_flux | raw_err | corr_flux | corr_err | dtr_flux | dtr_err</p>

<p>Does the data require any cleaning?
If I want to take the FFT of the data to find time period, which data should I use?</p>

CC BY-SA 3.0
2016-10-26T18:33:09.957Z
Unless you're trying to practice with FFT or something to that effect, your proposed method to find the period is overkill. You can get that directly from the BJD and the phase data. No need to FFT the flux data.
zephyr
<data-analysis><binary-star><eclipsing-star-systems><time-domain-astronomy>
Which data should I use to take the fast Fourier transform (FFT) to find time period for eclipsing binaries?
ruskin23
# Which data should I use to take the fast Fourier transform (FFT) to find time period for eclipsing binaries?

(Asked by: username_0 on 2016-10-26)

I am trying to use [Kepler Data for Eclipsing Binaries](http://keplerebs.villanova.edu/) to estimate time period, and then other parameters such as mass, eccentricity, semi-major axis, distance, etc. of the system. I want to write code in MATLAB which will use FFT. The available data has the following columns:

bjd(date) | phase | raw\_flux | raw\_err | corr\_flux | corr\_err | dtr\_flux | dtr\_err

Does the data require any cleaning?
If I want to take the FFT of the data to find time period, which data should I use?

**Tags:** data-analysis, binary-star, eclipsing-star-systems, time-domain-astronomy
> **Comments:**
> **username_1**: Unless you're trying to practice with FFT or something to that effect, your proposed method to find the period is overkill. You can get that directly from the BJD and the phase data. No need to FFT the flux data.  

---

## 1 answers

### Answer by username_2 on 2016-10-27. Score: 3

For this, you should create a lightcurve, a graph of brightness over time, to view the data. For Kepler data, the bjd(date) column is the time in [BJD](https://en.wikipedia.org/wiki/Barycentric_Julian_Date). The dtr\_flux stands for detrended flux, meaning that it should contain "cleaned" data.

First, I would plot the dtr\_flux column over bjd(time) to obtain a lightcurve. Depending on the type of eclipsing binary, you should see a minimum and maximum dip occurring periodically. The data also contains a "phase" column, meaning the data has been "folded" to allow you to plot each cycle of the eclipsing binary on top of each other. See <http://www.southampton.ac.uk/~sdc1g08/BinningFolding.html>

After that, you can take the FFT if you wish. Remember that since this is an eclipsing binary with both maximum and minumum brightness dips, the FFT will have a spike both at P and P/2.

> **Comments:**
> **username_0**: So I got the plot of bjd vs dtr_flux as http://imgur.com/gallery/3ZFNW. I tried taking the FFT of this, but all the values are coming imaginary except the max value which is coming as  6.0836e+04. What is the problem here?  
> **username_1**: @ruskin23 [That is to be expected](http://stackoverflow.com/questions/10304532/why-does-fft-produce-complex-numbers-instead-of-real-numbers). It sounds to me like you should go back and study exactly what an FFT is and how it works to get a better understanding of your results. What's more, you should probably disclude fitting the gap in your data as that will throw off your results to some degree.  
> **username_3**: The FFT assumes that the samples used are sampled at regular intervals. It  will not work with irregularly sampled data.  

---

