Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A set of astronomy-related routines for generating Voigt profiles from atomic data, reading and writing data, working with SEDs, passbands and dust extinction laws.

Project Description

This package contains functions useful for general scientific programming, with a focus on astronomical research. The documentation details everything that is available, but some example tasks that can be handled are:

  • Calculate absorption profiles for various ions observed in astrophysical environments.
  • Fit a smooth continuum to a spectrum with many emission or absorption features.
  • Find the expected broad-band magnitudes given a spectral energy distribution.

More details are given in the documentation here: http://nhmc.github.com/Barak

To install, either download the tarball from the pypi website and then do:

python setup.py install

You may need to put a ‘sudo’ in front of this.

A better way to install (which allows for easy uninstallation) is by using pip:

pip install barak

but you need to have pip (http://www.pip-installer.org/en/latest/index.html) installed.

To run the tests you need py.test (http://pytest.org/latest/getting-started.html) installed. Then run:

py.test barak

from this directory.

Neil Crighton

neilcrighton .at. gmail .dot. com

Change Log

v0.3.2 6th Jan 2013 – Fix import bug.

v0.3.1 6th Jan 2013 – Minor docs changes for PyPI.

v0.3.0 6th Jan 2013 – WARNING - there are several API changes compared
to version 0.2.x.
  • The extinction module has been overhauled (with API changes), curves are now given as A(lambda)/A(V) instead of E(lambda-V)/E(B-V) and use an ExtinctionCurve class.
  • Added a new module for calculating virial quantities, barak.virial.
  • Added a new uv QSO template.
  • make_constant_dv_wa_scale moved from barak.spec to barak.sed, convolve_constant_dv moved from barak.spec to barak.convolve.
  • Added new IR sed templates from Assef et al. 2010.
  • Many other minor enhancements and bug fixes.
  • The astropy package is now a requirement (needed for the cosmology package and some utilities).

v0.2.1, 19th Oct 2012 – Fixed problems with the PyPI upload.

v0.2.0, Oct 2012 – Initial release.

Release History

Release History

This version
History Node

0.3.2

History Node

0.3.1

History Node

0.3.0

History Node

0.2.1

History Node

0.2.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
Barak-0.3.2.tar.gz (13.6 MB) Copy SHA256 Checksum SHA256 Source Jan 6, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting