Skip to main content

A bunch of Python modules and scripts useful for variable star work in astronomy.

Project description

This is a bunch of Python modules I wrote for my astronomy work with the HAT surveys, mostly focused on handling light curves and characterizing variable stars. Module functions that deal with light curves (e.g. in the modules astrobase.lcmath, astrobase.periodbase, astrobase.varbase, astrobase.plotbase, and astrobase.checkplot) usually just 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 take a magsarefluxes keyword argument that makes them handle flux light curves correctly.

Full documentation is still a work in progress (as soon as I figure out how Sphinx works), but the docstrings are fairly good and an overview is provided at https://github.com/waqasbhatti/astrobase, along with Jupyter notebooks that demonstrate some of the functionality.

# Installation

This package requires the following other packages:

  • numpy

  • scipy

  • astropy

  • matplotlib

  • Pillow

  • jplephem

  • astroquery

  • tornado

  • pyeebls

You might need to install openssl-devel or a similar RPM/DEB package for the python-cryptography module that gets pulled in as a dependency for astroquery. For some extra functionality, you’ll need the following modules:

  • for astrobase.lcdb to work, you’ll also need psycopg2

First, make sure numpy and a Fortran compiler are installed

## you'll need a Fortran compiler.                      ##
## on Linux: dnf/yum/apt install gcc gcc-gfortran       ##
## on OSX (using homebrew): brew install gcc            ##
## make sure numpy is installed first!                  ##
## 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

Next, install astrobase

(venv)$ pip install astrobase

Or if you want the latest version

$ 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

astrobase-0.1.0.tar.gz (128.5 kB view details)

Uploaded Source

Built Distribution

astrobase-0.1.0-py2.py3-none-any.whl (153.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file astrobase-0.1.0.tar.gz.

File metadata

  • Download URL: astrobase-0.1.0.tar.gz
  • Upload date:
  • Size: 128.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for astrobase-0.1.0.tar.gz
Algorithm Hash digest
SHA256 de57e3ba8287dfd499e098f2961c74e48bfdc930223de690ab0a75e731ef5fd9
MD5 d736b2be37f7e079c20da452004358b1
BLAKE2b-256 e2eab9006dea6c5410c8303372f90c901a8962905988f64e4c52c8b9c4e1d33b

See more details on using hashes here.

File details

Details for the file astrobase-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for astrobase-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e100aab9732dacf0f521a6e7241cc2a46ff6c9638a2a7d82e2fee0f52766e42c
MD5 1f3a9aa23ef076689c5593da86b7f67a
BLAKE2b-256 c151ec9f2187905d18e930974391cc4728e33db7d476107bb404c8ec9a846e86

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page