Cosmo

class Cosmo(units=None, Omega_m=None, Omega_l=None, Omega_k=None, H_0=None, steps_DC=None, steps_dVC=None)[source]

Bases: object

This class sets-up a cosmological framework to evalute comosmological distances and volume. Calculations are done following Hogg 1999

Parameters:
  • units – (str), units for distances “cm”, or “Gpc”, or “Mpc”
  • Omega_m – (float), if not provided taken from BlazarSED code value
  • Omega_l – (float), if not provided taken from BlazarSED code value
  • Omega_k – (float), if not provided taken from BlazarSED code value

Methods Summary

DA(z) evaluates the angular distance
DC(z) evaluates the comoving (line-of-sight) distance
DL(z) evaluates the luminosity distance
DM(z) evaluates the comoving (transverse) distance
EZ(z)
VC(z2[, z1]) evaluates the comoving volume in a spehrical shell between z1 and z2
four_pi_dVC(z)
show() shows the set-up of the comological framework

Methods Documentation

DA(z)[source]

evaluates the angular distance

Parameters:z – (float) redhsift
Returns:angular distance
DC(z)[source]

evaluates the comoving (line-of-sight) distance

Parameters:z – (float) redhsift
Returns:comoving (line-of-sight) distance
DL(z)[source]

evaluates the luminosity distance

Parameters:z – (float) redhsift
Returns:luminosity distance
DM(z)[source]

evaluates the comoving (transverse) distance

Parameters:z – (float) redhsift
Returns:comoving (transverse) distance
EZ(z)[source]
VC(z2, z1=None)[source]

evaluates the comoving volume in a spehrical shell between z1 and z2

Parameters:
  • z2 – (float) redhsift
  • z1 – (float) redhsift, optional, if not provided the returned volume will be the sphere with a z=z2
Returns:

comoving volume

four_pi_dVC(z)[source]
show()[source]

shows the set-up of the comological framework