aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim
diff options
context:
space:
mode:
Diffstat (limited to 'fg21sim')
-rw-r--r--fg21sim/utils/cosmology.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/fg21sim/utils/cosmology.py b/fg21sim/utils/cosmology.py
index 12e581a..906f7d8 100644
--- a/fg21sim/utils/cosmology.py
+++ b/fg21sim/utils/cosmology.py
@@ -75,6 +75,20 @@ class Cosmology:
"""
return self.H0 * self.E(z)
+ def DL(self, z):
+ """
+ Luminosity distance at redshift z.
+ Unit: [Mpc]
+ """
+ return self._cosmo.luminosity_distance(z).value
+
+ def DA(self, z):
+ """
+ Angular diameter distance at redshift z.
+ Unit: [Mpc]
+ """
+ return self._cosmo.angular_diameter_distance(z).value
+
@property
def hubble_time(self):
"""