Giter Club home page Giter Club logo

acf-mcquillan's Introduction

ACF-McQuillan

This is my implementation of the autocorrelation-based period detection algorithm described in McQuillan et al. 2013 and McQuillan et al. 2014. Autocorrelation functions (ACFs) have been shown to be well-suited for detecting rotational periods in stellar light curves.

See example.ipynb for a walkthrough of how it's used. The algorithm is in acf_mma.py, with some supporting methods in timeseriestools.py.

ACFs assume evenly spaced data. This can be obtained by applying map_and_interpolate_gaps in timeseriestools.py, which remaps the data to make the cadence constant, linearly interpolating temporal gaps (e.g. t=802 to t=809 in the plot below).

timeseries ACF

How it works

Aftering computing the ACF, the algorithm first determines the dominant period, defined as whichever of the first two ACF peaks has a larger local peak height (defined as the average distance from peak to adjacent troughs). In the example above, the second peak at ~18 days was chosen. Then, the algorithm looks for harmonics of this dominant period, i.e. peaks near integer multiples of the dominant period (orange shaded regions). Finally, the rotation period and its uncertainty are computed by fitting a line to the period of each peak vs. its harmonic number.

Dependencies

  • numpy
  • scipy
  • numba

acf-mcquillan's People

Contributors

canisli avatar

Stargazers

Sean Rapp avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.