Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
x-cigale
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Guang
x-cigale
Commits
07d41ad0
Commit
07d41ad0
authored
Feb 08, 2019
by
Guang
2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change alpha_ox to det_alpha_ox, to use the empirical alpha_ox-L_2500 relation
parent
c33faf1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
pcigale/sed_modules/xray.py
pcigale/sed_modules/xray.py
+14
-8
No files found.
pcigale/sed_modules/xray.py
View file @
07d41ad0
...
...
@@ -9,7 +9,7 @@
X-ray module
=============================
This module implements the X-ray emission from
the
galaxy and AGN corona.
This module implements the X-ray emission from galaxy and AGN corona.
"""
...
...
@@ -31,15 +31,15 @@ class Xray(SedModule):
(
"gam"
,
(
"cigale_list()"
,
"The photon index (Gamma) of intrinsic X-ray spectrum."
,
1.
6
1.
7
)),
(
"det_alpha_ox"
,
(
"cigale_list()"
,
"Deviation of alpha_ox from the empirical alpha_ox(Lnu_2500A) relation (Just et al. 2007),
"
,
"defined as det_alpha_ox = alpha_ox - alpha_ox(Lnu_2500A).
"
,
"Common (~3sigma) range of det_alpha_ox is [-0.3, 0.3]
"
,
"Note: alpha_ox is the power-law slope connecting L_nu at rest-frame 2500 A and 2 keV, "
,
"defined as alpha_ox = 0.3838*log(Lnu_2keV/Lnu_2500A)"
,
"Deviation of alpha_ox from the empirical alpha_ox(Lnu_2500A) relation (Just et al. 2007),
"
+
"defined as det_alpha_ox = alpha_ox - alpha_ox(Lnu_2500A).
"
+
"Common (~3sigma) range of det_alpha_ox is [-0.3, 0.3]
. "
+
"Note: alpha_ox is the power-law slope connecting L_nu at rest-frame 2500 A and 2 keV, "
+
"defined as alpha_ox = 0.3838*log(Lnu_2keV/Lnu_2500A)
.
"
,
0.0
))
])
...
...
@@ -116,6 +116,12 @@ class Xray(SedModule):
sed
.
add_info
(
"xray.det_alpha_ox"
,
self
.
det_alpha_ox
)
# Convert det_alpha_ox to alpha_ox
# Check if Lnu_2500A is positive
if
Lnu_2500A
>
0
:
alpha_ox
=
self
.
det_alpha_ox
+
-
0.137
*
np
.
log10
(
Lnu_2500A
*
1e7
)
+
2.638
else
:
alpha_ox
=
-
np
.
inf
sed
.
add_info
(
"xray.alpha_ox"
,
alpha_ox
)
# Calculate 0.5-2 keV hot-gas luminosities
# Mezcua et al. 2018, Eq. 5
...
...
@@ -130,7 +136,7 @@ class Xray(SedModule):
10
**
(
33.276
-
1.503
*
logT
-
0.423
*
logT
**
2
+
0.425
*
logT
**
3
+
0.136
*
logT
**
4
)
# Calculate L_lam_2keV from Lnu_2500A
Lnu_2keV
=
10
**
(
self
.
alpha_ox
/
0.3838
)
*
Lnu_2500A
Lnu_2keV
=
10
**
(
alpha_ox
/
0.3838
)
*
Lnu_2500A
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
,
...
...
Guang
@gyang
mentioned in commit
86603e6b
·
Feb 08, 2019
mentioned in commit
86603e6b
mentioned in commit 86603e6ba0f79569de6d670bfbef059a79dfb5f7
Toggle commit list
Guang
@gyang
mentioned in commit
d01c6550
·
Oct 23, 2019
mentioned in commit
d01c6550
mentioned in commit d01c6550026f1169a4ab3f4002bee145e91972cf
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment