diff options
author | Aaron LI <aly@aaronly.me> | 2017-07-22 23:53:20 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-07-22 23:53:20 +0800 |
commit | 4476a0ca0e22d6a35bb07da87956d21ec7c49074 (patch) | |
tree | 8bbbc491e34956c77d8a1b2f3e38c868fd4e3677 /fg21sim/extragalactic/clusters/emission.py | |
parent | fd5ae04bce31a4cb82dea8532028b6df92b3d476 (diff) | |
download | fg21sim-4476a0ca0e22d6a35bb07da87956d21ec7c49074.tar.bz2 |
Use all uppercase to identify the global CONFIGS and COSMO
Update to use the global CONFIGS and COSMO
Signed-off-by: Aaron LI <aly@aaronly.me>
Diffstat (limited to 'fg21sim/extragalactic/clusters/emission.py')
-rw-r--r-- | fg21sim/extragalactic/clusters/emission.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fg21sim/extragalactic/clusters/emission.py b/fg21sim/extragalactic/clusters/emission.py index 4366025..5c9e0a7 100644 --- a/fg21sim/extragalactic/clusters/emission.py +++ b/fg21sim/extragalactic/clusters/emission.py @@ -18,7 +18,7 @@ import numpy as np import scipy.integrate import scipy.special -from ...utils import cosmo +from ...utils import COSMO from ...utils.units import (Units as AU, UnitConversions as AUC, Constants as AC) @@ -164,7 +164,7 @@ class SynchrotronEmission: Synchrotron flux at frequency ``nu``. Unit: [Jy] = 1e-23 [erg/s/cm^2/Hz] """ - DL = cosmo.DL(self.z) * AUC.Mpc2cm # [cm] + DL = COSMO.DL(self.z) * AUC.Mpc2cm # [cm] P_nu = self.power(nu) F_nu = 1e23 * P_nu / (4*np.pi * DL*DL) # [Jy] return F_nu @@ -191,7 +191,7 @@ class SynchrotronEmission: Synchrotron surface brightness at frequency ``nu``. Unit: [K] <-> [Jy/pixel] """ - DA = cosmo.DL(self.z) * AUC.Mpc2cm # [cm] + DA = COSMO.DL(self.z) * AUC.Mpc2cm # [cm] radius = self.radius * AUC.kpc2cm # [cm] omega = (np.pi * radius**2 / DA**2) * AUC.rad2deg**2 # [deg^2] pixelarea = (pixelsize * AUC.arcsec2deg) ** 2 # [deg^2] |