Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Guang
x-cigale
Commits
67550872
Commit
67550872
authored
Jun 14, 2019
by
Guang
Committed by
Guang
Oct 23, 2019
Browse files
only apply E(B-V) to type 1
parent
a5182b96
Changes
1
Show whitespace changes
Inline
Side-by-side
pcigale/sed_modules/fritz2006.py
View file @
67550872
...
...
@@ -138,9 +138,14 @@ class Fritz2006(SedModule):
# The extinction factor, flux_1/flux_0
ext_fac
=
10
**
(
A_lam
/-
2.5
)
# Calculate the new AGN SED shape after extinction
# The direct and scattered components (line-of-sight) are extincted
if
self
.
psy
>
(
90
-
self
.
opening_angle
):
# The direct and scattered components (line-of-sight) are extincted for type-1 AGN
lumin_agn_new
=
self
.
fritz2006
.
lumin_agn
*
ext_fac
lumin_scatt_new
=
self
.
fritz2006
.
lumin_scatt
*
ext_fac
else
:
# Keep the direct and scatter components for type-2
lumin_agn_new
=
self
.
fritz2006
.
lumin_agn
lumin_scatt_new
=
self
.
fritz2006
.
lumin_scatt
# Calculate the total extincted luminosity averaged over all directions
# note that self.opening_angle is different from Fritz's definiting!
l_ext
=
np
.
trapz
(
self
.
fritz2006
.
lumin_intrin_agn
*
(
1
-
ext_fac
),
...
...
Write
Preview
Supports
Markdown
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