Git Product home page Git Product logo

multiband_ls's Introduction

Mutiband Lomb-Scargle Periodograms

This repository contains the source for our multiband periodogram paper. It makes use of the gatspy package, which has been developed concurrently. The paper has been submitted to the Astrophysical Journal, and a preprint is available on arXiv. To see a current build of the paper from the master branch of this repository, refer to http://jakevdp.github.io/multiband_LS (powered by gh-publisher).

Feel free to submit comments or feedback via the Issues tab on this repository.

Reproducing the Paper

The LaTeX source of the paper, including all figure pdfs, is in the writeup directory. The code to reproduce the analysis and figures in the paper is in the figures directory.

To reproduce the figures, first install the following packages (Python 2 or 3):

With conda, a new environment meeting these requirements can be set up as follows:

$ conda create -n multibandLS python=3.4 ipython-notebook numpy scipy matplotlib scikit-learn pandas seaborn pip
$ source activate multibandLS
$ pip install astroML gatspy supersmoother

Once these packages are installed, navigate to the figures directory and run any of the fig*.py scripts. For example, to create figure 1, type

$ cd figures
$ python fig01_basic_example.py

Several of the figures require the results of long computations. These results are cached as numpy binary files in figures/LSSTsims/ and figures/S82sims/. Code to recompute these results in parallel is in the compute_results.py script in each of these directories. Note that the full computation for these takes several dozen CPU hours, but is trivially parallelizable with IPython parallel (see scripts for details).

multiband_ls's People

Contributors

jakevdp avatar ivezic avatar

Watchers

James Cloos avatar  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.