Coder Social home page Coder Social logo

periodizer's Introduction

A perfect Python repository for estimating the rotation period and its uncertainty from light curve files

Features

This repository uses the Lomb-Scargle periodogram to estimate the rotation period of the signal and statistical techniques for estimating the uncertainty of the period.

This repo contains two executable modules:

  • (Periodizer.py) Estimation of the period and uncertainty using the bootstrap method to resample the light curve within the flux error bars.
  • (Periodizer_parallelized.py) Same as the periodize.py but using multithreads, notoriously improves the computing time.

To do

  • Include statistical parameters to analyze the periodicity of the light curve (like Cody).
  • Support a general ASCII file with three columns.
  • Modify the error estimation based on the logarithmic step average.

Input requirement

  • A CSV file with three columns called: "time", "magnitude or flux", "magnitude_err, or flux_err".

The periodizer was made to be used with the light curves files from the TESSExtractor application. However, that is not a prerequisite, it really could be used with any data file in the format previously described. A straightforward way to search the light curve of the target of interest is by using the app TESSExtractor and downloading the input file to feed Periodizer.

Output

The period and its uncertainty

How to use it?

Locate the repository folder and execute in the terminal the module you desire:

$ python periodizer.py "input_file.csv"

$ python periodizer_parallelized.py "input_file.csv"

Feel free to use this app in any scientific project!

Any questions or comments just email me: [email protected]

Please cite:

Copyright© 2023. Javier Serna, Jesús Hernandez and ARYSO group.

periodizer's People

Contributors

javiserna avatar jesush149 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.