Giter Club home page Giter Club logo

cosmopit's Introduction

cosmopit

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:

  1. Simple Statistical tests

  2. cosmological coordinate transformations

  3. Fitting functions and functionals, with bayesian methods

  4. routines to read data from .fits and .txt files

Not-so-common tasks, that you can perform with this toolkit, are:

  1. Calculation of theoretical predictions of 2point correlation function, number counts, fractal dimension using the CLASS software.

  2. 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.

INSTALLATION:

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

Prerequist

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

USE example:

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

MCMC python example

Functors of Actions example: Actions of Effective Field Theories

Factor of contaminants Bias D-growth-of-structure vs redshift: FBDz functional example

Citation

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

QUERIES:

please feel free to contact for any queries or bugs at:
ntelis.pierros -at- gmail -point- com

cosmopit's People

Contributors

lontelis avatar

Stargazers

Ulyana Dupletsa avatar  avatar

Watchers

James Cloos avatar paper2code - bot avatar

cosmopit's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.