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.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.0.tar.gz (13.6 MB view hashes)

Uploaded Source

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