cosmological python initial toolkit
It is a toolkit containing routines to perform common and uncommon tasks in cosmology.
Common tasks, that you can perform with this toolkit, are:
-
Simple Statistical tests
-
cosmological coordinate transformations
-
Fitting functions and functionals, with bayesian methods
-
routines to read data from .fits and .txt files
Not-so-common tasks, that you can perform with this toolkit, are:
-
Calculation of theoretical predictions of 2point correlation function, number counts, fractal dimension using the CLASS software.
-
Calculation of estimators of 2point correlation function, number counts, fractal dimension, using the cute software
The cosmology used assumes a homogeneous and isotropic universe within the ΛCDM model.
In order to use these libraries one need to download these files in their directory:
Simply do on terminal:
git clone https://github.com/lontelis/cosmopit.git
or
python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps cosmopit
python 2.7+
numpy
pylab
scipy
pyfits
iminuit (https://pypi.python.org/pypi/iminuit)
emcee (http://dan.iel.fm/emcee/current/)
pymc (https://pymc-devs.github.io/pymc/)
CLASS (software for cosmology https://github.com/lesgourg/class_public/wiki/Installation )
To install CLASS, just do:
git clone https://github.com/lesgourg/class_public.git class
import each file as:
from cosmopit import cosmology
from cosmopit import numMath
from cosmopit import galtools
and then use each library as following. As an example from the cosmology.py library you can calculate the Comoving Volume distance as:
distComVol = cosmology.D_V(z=0.5)
Other Examples
Tutorial of coordinate transformation applied in cosmology
Baryon Acoustic Oscillation (BAO) detection jupyter notebook example
Supernovae (SN) fitting curve jupyter notebook example
Functors of Actions example: Actions of Effective Field Theories
Factor of contaminants Bias D-growth-of-structure vs redshift: FBDz functional example
If you use this code please cite at least the following paper:
P.Ntelis et al 2018 https://arxiv.org/abs/1810.09362
Citable papers which use partially the aforementioned code package
(and which can be also be cited for the same reason)
are:
The scale of cosmic homogeneity as a standard ruler
P.Ntelis et al 2018 https://arxiv.org/abs/1810.09362
Exploring cosmic homogeneity with the BOSS DR12 galaxy sample
P.Ntelis et al 2017 https://arxiv.org/abs/1702.02159
A 14 h−3 Gpc3 study of cosmic homogeneity using BOSS DR12 quasar sample
P.Laurent, ..., P. Ntelis, et al. https://arxiv.org/abs/1602.09010
please feel free to contact for any queries or bugs at:
ntelis.pierros -at- gmail -point- com