Skip to content

Educational materials for topics related to CosmoStat activities.

Notifications You must be signed in to change notification settings

CosmoStat/Tutorials

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

(not working yet) Binder

Cosmology with Python wrappers for Einstein-Boltzmann Codes:

CAMB and CLASS


Authors: Santiago Casas
Year: 2020
Email: santiago.casas@cea.fr

This tutorial is comprised of a series of Jupyter notebooks with simple demonstrations and exercises on how to use CAMB and CLASS using python wrappers. The code is designed for non-experts in the field, therefore it includes relatively simple explanations of cosmological concepts. It intends to show a general overview of the things that are possible with Einstein-Boltzmann codes and python.

How to install using Docker

In order to run the tutorial notebooks and to have the Boltzmann codes installed, without problems, we will use Docker containers. If you haven't installed Docker, check their website for installation instructions. If you are interested in more details about Docker, check our CosmoStat tutorial on Docker for Data Scientists.

  1. Pull the docker image that can be found here

    docker pull santiagocasas/einstein-boltzmann-codes

  2. Clone this repository and checkout into the boltzmann branch.

    git clone -b boltzmann https://github.com/CosmoStat/Tutorials.git

  3. Change directory to Tutorials/Einstein-Boltzmann-Codes.

  4. Enter the container by doing:

    docker run -p 8888:8888 -v ${PWD}:/home/jovyan/work/:rw -it santiagocasas/einstein-boltzmann-codes

  5. Check that you see the class and work folders by typing ls inside the docker terminal.

  6. Start a jupyter notebook instance by typing jupyter notebook on the terminal. If a browser window does not open, copy and paste the link that appears on the terminal prompt into your favorite browser. If the copied link does not work, try typing 0.0.0.0:8888 into your browser.

  7. To test if the installation worked, run all the cells in the test_CAMB_CLASS.ipynb notebook, which you will find in the repo under the work/ directory.

Installing manually and locally

Download and install all requirements

Run the Test Notebook to check that everything has been installed correctly

Notebooks

  1. Background Cosmology
  2. Perturbations and the CMB
  3. Galaxy Clustering and the Fisher Matrix
  4. Test Notebook for CAMB and CLASS

Background Cosmology

In this notebook, we will cover the following concepts:

  1. What is (precision) Cosmology?
  2. General Relativity in 5 minutes using EinsteinPy
  3. The Hubble equation (self-made)
  4. The Hubble equation with CAMB and CLASS
  5. Cosmological Distances

Perturbations and the CMB

In this notebook, we will cover the following concepts:

  1. Quick introduction to the Cosmic Microwave Background.
  2. Computing the angular power spectra from CAMB and CLASS.
  3. Interactive comparison of cosmological parameters with Planck data.
  4. Transfer functions, growth and growth rate.

Galaxy Clustering and the Fisher Matrix

In this notebook, we will cover the following concepts:

  1. Quick introduction to Galaxy Clustering with spectroscopic redshifts.
  2. Building and plotting the GC model with CAMB and CLASS.
  3. Quick introduction to Fisher Matrix forecasts.
  4. An example of a 2-dimensional GC Fisher Matrix.

About

Educational materials for topics related to CosmoStat activities.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published