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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file astrobase-0.1.2.tar.gz
.
File metadata
- Download URL: astrobase-0.1.2.tar.gz
- Upload date:
- Size: 125.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7401861119248315fe40d6d485ee6a26163b169237430f8df8b3f2a8ffa5e90 |
|
MD5 | 604f6b12a77996d915fab1b9a8a1b32c |
|
BLAKE2b-256 | c0900018212c41caa616374fc62686079bca5452d4e39136518da5fe6e122852 |
File details
Details for the file astrobase-0.1.2-py2.py3-none-any.whl
.
File metadata
- Download URL: astrobase-0.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 153.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df85cee628508544eaff00093224a117c585e17cb14921f8204dcee2c0b9a723 |
|
MD5 | 123be070de57bce0417f0bdb9cf52e26 |
|
BLAKE2b-256 | 752dbb7237ab71bf2f19f1ec21ae5fe0c2a6621cecae6dfe37cc2e3bb306ffe6 |