<div dir="ltr"><div><div><div>Hi Hang,<br><br></div>The "Python users in astronomy" facebook group [0] may be a better place to ask these kind of general questions as there may be more people reading and answering it there. <br><br></div>The answer may depend on what kind of periodic signals you are looking for. I have more experience with the following two options below, but there are several more approaches, too e.g. using wavelets, or gaussian process, etc.<br><br>One of the fastest/simplest method would be to run Lomb-Scargle [1], but it has some serious limitations if your signal is far from being sinusoidal, or you are going after quasi periodicity with changing signal shape, etc. There are quite a few python implementation, e.g in scipy or gatspy.  <br>Another method to search for a period is to use the autocorrelation function. Since your data is unevenly sampled you should use a <span class=""><em>discrete correlation function </em></span>instead. Python implementations can be found in the time_series module of the astroML package.<br></div><div> Chapter 10 in the book of Statistics, Data Mining, and Machine Learning in Astronomy by Ivezić et al, is also an excellent guide on the subject. <br><br></div><div>Hope it helped.<br><br></div><div>Cheers,<br></div><div> Brigitta<br><br><br></div><div>[0] - <a href="https://www.facebook.com/groups/astropython/">https://www.facebook.com/groups/astropython/</a><br>[1] - <a href="https://jakevdp.github.io/blog/2015/06/13/lomb-scargle-in-python/">https://jakevdp.github.io/blog/2015/06/13/lomb-scargle-in-python/</a><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 5 March 2016 at 14:20, gonghang.naoc <span dir="ltr"><<a href="mailto:ghang.naoc@gmail.com" target="_blank">ghang.naoc@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<br>This may not be a good question posted here, but possibly there should be pythoners who work in this field. <br>I wonder anybody knows an algorithm for the detection of periodic signals in gapped data?<br>I searched ADS, but it seems most of the data people deal with are evenly sampled.<br><br>Thank you.<br>Regards,<br>Hang<br></div>
<br>_______________________________________________<br>
AstroPy mailing list<br>
<a href="mailto:AstroPy@scipy.org">AstroPy@scipy.org</a><br>
<a href="https://mail.scipy.org/mailman/listinfo/astropy" rel="noreferrer" target="_blank">https://mail.scipy.org/mailman/listinfo/astropy</a><br>
<br></blockquote></div><br></div>