News


propper motion distance vs. redshift and Omega_M

CosmoloPy

a cosmology package for Python.

Features

Current capabilities include calculation of

Contribute

The best way to contribute to the development of CosmoloPy is to use the code and provide feedback, request new features, or add features yourself.

Please join the developer discussion group and help turn CosmoloPy into a comprehensive community-maintained package of basic cosmology routines. Whether you plan to be a casual user or frequent contributor, this is the place to introduce yourself and discuss the future of the package.

Status

The API is still in flux (particularly the reionization routines), but CosmoloPy should already be quite usable.

Please join the developer discussion group if you are interested in using the code and ask about the status of the routines you are interested in using.

angular diameter distance versus redshift and Omega_M

Download

You can clone the CosmoloPy project with Git by running:

$ git clone git://github.com/roban/CosmoloPy
or download the package in either
zip or
tar format
or view the source code on GitHub: roban/CosmoloPy.

Installation

python setup.py build
python setup.py nosetests
sudo python setup.py install

Usage

Most functions are designed to take a cosmology parameters as keywords. The easiest way to use CosmoloPy is to create a dictionary of the cosmology parameters and pass it to each function using the ** syntax.

>>> import cosmolopy.distance as cd
>>> cosmo = {'omega_M_0' : 0.3, 'omega_lambda_0' : 0.7, 'h' : 0.72}
>>> d_co, err = cd.comoving_distance(6., **cosmo)
>>> print "Comoving distance = %.1f Mpc" % (d_co)
Comoving distance = 8017.8 Mpc

Look in the tests/ and examples/ directories for more examples.

Acknowledgment

If you use any of the routines that make use of power spectrum calculations, please cite

Eisenstein, D. J., & Hu, W. 1999, ApJ, 511, 5 [astro-ph/9710252]
as the source of the matter power spectrum.

The use of CosmoloPy in general does not require any acknowledgment, but it is nice as a courtesy to the authors and as a service to others who might benefit from finding out about the package. Please consider including the URL of this page (http://roban.github.com/CosmoloPy/) in work benefiting from CosmoloPy.

Authors

Roban Hultman Kramer (roban@astro.columbia.edu)

Please consider contributing to this project. Introduce yourself on the CosmoloPy developer discussion group.

Other resources

Some other Python cosmology software.