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:
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
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.
from gls import Gls
and then see the example in gls.py#L104-L126