lesgourg / class_public

Public repository of the Cosmic Linear Anisotropy Solving System (master for the most recent version of the standard code; GW_CLASS to include Cosmic Gravitational Wave Background anisotropies; classnet branch for acceleration with neutral networks; ExoCLASS branch for exotic energy injection; class_matter branch for FFTlog)
230 stars 285 forks source link

Differences between angular diameter distances #252

Open fkoehlin opened 5 years ago

fkoehlin commented 5 years ago

Hi all,

CLASS' Python wrapper supplies the function angular_distance(self, z) to obtain an angular diameter distance at a specified redshift z (i.e. a call to index_bg_ang_distance in the background module). This usually implies the integral defining the angular diameter distance is calculated between z=0 and the specified redshift z.

Is it also possible to define a more general angular diameter distance between two arbitrary redshifts z1 and z2 (i.e. the difference between two angular diameter distances also for non-flat cosmologies)? Or is this function already defined in the background module so that I could just include it in the Python wrapper myself?

Cheers,

Fabian