DOI Documentation Status

Astrobase is a Python package for analyzing light curves and finding variable stars. It includes implementations of several period-finding algorithms, batch work drivers for working on large collections of light curves, and a small web-app useful for reviewing and classifying light curves by stellar variability type.

Most functions in this package that deal with light curves usually require three Numpy ndarrays as input: times, mags, and errs, so they should work with any time-series data that can be represented in this form. If you have flux time series measurements, most functions also take a magsarefluxes keyword argument that makes them handle flux light curves correctly.

Install astrobase from the Python Package Index (PyPI):

$ pip install numpy # needed to set up Fortran wrappers
$ pip install astrobase

See the installation instructions below for details. This package requires Python >= 3.5 as of version 0.5.0. Use pip install astrobase<0.5.0 for older Python versions.

Python 3.6: Python
3.6 Python 3.7: Python
3.7 Python 3.8: Python 3.8

Contents

Changelog

Please see https://github.com/waqasbhatti/astrobase/blob/master/CHANGELOG.md for a list of changes applicable to tagged release versions.

Installation

Requirements

This package requires the following other packages:

For optional functionality, some additional packages are required:

Installing with pip

If you're using:

You can simply install astrobase with:


(venv)$ pip install astrobase

Otherwise, you'll need to make sure that a Fortran compiler and numpy are installed beforehand to compile the pyeebls package that astrobase depends on:

## you'll need a Fortran compiler.                              ##
## on Linux: dnf/yum/apt install gcc gfortran                   ##
## on OSX (using homebrew): brew install gcc && brew link gcc   ##

## make sure numpy is installed as well!                        ##
## this is required for the pyeebls module installation         ##

(venv)$ pip install numpy # in a virtualenv
# or use dnf/yum/apt install numpy to install systemwide

Once that's done, install astrobase.

(venv)$ pip install astrobase

Other installation methods

Install all the optional dependencies as well:

(venv)$ pip install astrobase[all]

Install the latest version (may be unstable at times):

$ git clone https://github.com/waqasbhatti/astrobase
$ cd astrobase
$ python setup.py install
$ # or use pip install . to install requirements automatically
$ # or use pip install -e . to install in develop mode along with requirements
$ # or use pip install -e .[all] to install in develop mode along with all requirements

License

astrobase is provided under the MIT License. See the LICENSE file for the full text.