yaw.core.cosmology#

This module defines an interface for custom cosmological models, as well as routines that depend on cosmological distance calculations.

Functions

get_default_cosmology()

Get the default cosmology (Planck Collaboration et al. 2015).

r_kpc_to_angle(r_kpc, z, cosmology)

Convert from a physical separation in kpc to angles in radian at a given redshift.

Classes

BinFactory(zmin, zmax, nbins[, cosmology])

Class used to generate redshift bins.

CustomCosmology()

Metaclass that defines the API to implement a custom cosmological model.

Scale(rmin, rmax)

Class that represents a range of physical scales in kpc.