Skip to content

Latest commit

 

History

History

python

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

gls.py - Generalised Lomb-Scargle periodogram

gls.py is a standalone script for python2 and python3. It also runs from the command line.

Here is an example for a working plot:

Installation

Create a folder and run there

wget https://raw.githubusercontent.com/mzechmeister/GLS/master/python/gls.py
python -c "import setuptools; setuptools.setup(name='gls')" develop --user

Usage from shell command line

Run the demo with

python gls.py

or

python -m gls

A shortcut gls is very convenient

ln gls.py ~/bin/gls

Then you can use it for instance as

gls your_data_file -fend 1.

Usage in Python

from gls import Gls

and then see the example in gls.py#L104-L126