Skip to content
Bayesian version of the Generalized Lomb-Scargle periodogram
Branch: master
Clone or download
Latest commit 76db0b2 May 20, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Add authors to the license Oct 6, 2015 minor updates in readme May 20, 2017 Improve frequency sampling; fixes issue #1 Oct 6, 2015

A Bayesian formalism for the generalised
Lomb-Scargle periodogram

The BGLS tool calculates the Bayesian Generalized Lomb-Scargle periodogram as described in Mortier et al. (2014). It is written in Python (tested on Python 2.7).

The code contains the definition of the algorithm, takes as input three arrays with a time series, a dataset and errors on those data, and returns arrays with sampled periods and the periodogram values at those periods.

In order to run, it requires the following python packages:

* numpy (
* mpmath (

More information can be found in the paper

Mortier, A., Faria, J. P., Correia, C. M., Santerne, A., Santos, N. C. 2015, A&A, 573, A101

If you use the code provided here, please cite the above paper. We welcome feedback via the issues.

The code is distributed under the MIT license. See the LICENSE file.

You can’t perform that action at this time.