Commit c3b1e2c6 authored by Guang's avatar Guang

bug fixed for X-ray module

parent ede07146
......@@ -50,6 +50,7 @@ class Xray(SedModule):
# We define various constants necessary to compute the model. For
# consistency, we define speed of light in units of nm s¯¹
c = cst.c * 1e9
self.c = c
# Define wavelenght corresponding to some energy in units of nm.
lam_0p5keV = c*cst.h / (5e2*cst.eV)
lam_2keV = c*cst.h / (2e3*cst.eV)
......@@ -124,7 +125,7 @@ class Xray(SedModule):
# Calculate L_lam_2keV from Lnu_2500A
Lnu_2keV = 10**(self.alpha_ox/0.3838) * Lnu_2500A
L_lam_2keV = Lnu_2keV * self.nu_2keV**2/c
L_lam_2keV = Lnu_2keV * self.nu_2keV**2/self.c
# Calculate total AGN corona X-ray luminosity
l_agn_xray_total = np.trapz(L_lam_2keV * self.lumin_corona,
x=self.wave)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment