Skip to main content

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 at https://github.com/waqasbhatti/astrobase-notebooks.

Changelog

Please see https://github.com/waqasbhatti/astrobase/blob/master/CHANGELOG.md for the latest changelog for tagged versions.

Installation

This package requires the following other packages:

  • numpy

  • scipy

  • astropy

  • matplotlib

  • Pillow

  • jplephem

  • requests

  • tornado

  • pyeebls

  • tqdm

  • scikit-learn

For some extra functionality, you’ll need the following modules:

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

If you’re using:

  • 64-bit Linux and Python 2.7, 3.4, 3.5, 3.6

  • 64-bit Mac OSX 10.12+ with Python 2.7 or 3.6

  • 64-bit Windows with Python 2.7 and 3.6

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 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

If you want to install all optional dependencies as well

(venv)$ pip install astrobase[all]

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.3.17.tar.gz (820.7 kB view details)

Uploaded Source

Built Distribution

astrobase-0.3.17-py3-none-any.whl (858.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: astrobase-0.3.17.tar.gz
  • Upload date:
  • Size: 820.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/37.0.0 requests-toolbelt/0.8.0 tqdm/4.19.4 CPython/3.6.0

File hashes

Hashes for astrobase-0.3.17.tar.gz
Algorithm Hash digest
SHA256 b8b64f9970ec37b4c396ef3d3452bd1d31e45d08fc5963ab1ed5e5ead73ff793
MD5 4133d2614b8fea549d2f9b4fd272e3a7
BLAKE2b-256 3c012735adfe231dc421d259926a0e892a8c43293f6a4dcc6f7552e8bb71ecec

See more details on using hashes here.

File details

Details for the file astrobase-0.3.17-py3-none-any.whl.

File metadata

  • Download URL: astrobase-0.3.17-py3-none-any.whl
  • Upload date:
  • Size: 858.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/37.0.0 requests-toolbelt/0.8.0 tqdm/4.19.4 CPython/3.6.0

File hashes

Hashes for astrobase-0.3.17-py3-none-any.whl
Algorithm Hash digest
SHA256 a76ce05223898eda816983f21095d958967a6bf2e67d676998085aa1a823a63a
MD5 3f5522c482b49c6a20d46e578d8af3a0
BLAKE2b-256 974e4b1aa885d1a8994d9468b32d2cdb0c5bae358a4c7eb30ac4d295b21bfac6

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