Skip to content

abaleato/CARDiAC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CARDiAC

Code for Anisotropic Redshift Distributions in Angular Clustering

CARDiAC is a python code that computes the impact of anisotropic redshift distributions on a wide class of angular clustering observables, following Baleato Lizancos & White 2023.

At present, the code supports auto- and cross-correlations of galaxy samples and cosmic shear maps, including galaxy -galaxy lensing. The anisotropy can be present in the mean redshift and/or width of Gaussian distributions, as well as in the fraction of galaxies in each component of multi-modal distributions. Templates of these variations can be provided by the user or simulated internally within the code.

Installation

Dependencies:
  • numpy, scipy, matplotlib
  • astropy
  • healpy
  • py3nj
  • camb
  • numba for JIT compilation of galaxy lensing kernels, which are slow to compute otherwise

Optionally, galaxy-galaxy and galaxy-matter spectra can be obtained from a Lagrangian bias expansion using the anzu code if the user has it installed.

PyPI:
pip install cardiac==1.1.6
Editable installation in-place:

First, clone the repository

git clone https://github.com/abaleato/CARDiAC.git   

and from within it run

python -m pip install -e .

Usage

See Tutorial.ipynb.

Attribution

If you use the code, please cite Baleato Lizancos & White 2023.