Skip to main content

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.

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

Barak-0.3.2.tar.gz (13.6 MB view details)

Uploaded Source

File details

Details for the file Barak-0.3.2.tar.gz.

File metadata

  • Download URL: Barak-0.3.2.tar.gz
  • Upload date:
  • Size: 13.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Barak-0.3.2.tar.gz
Algorithm Hash digest
SHA256 be79d562a0a4c0426dc960eeec74fa2497b40e0ac1a2465b8200c7f28b8dfee3
MD5 382febe4e9929371e73f632bc83f2562
BLAKE2b-256 c5c3026bf4506b24c206c24a0a05295838489df5fcf7fb49f7612c619f131c6d

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