Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
cigale
CIGALE
Commits
ec9cd372
Commit
ec9cd372
authored
Nov 18, 2015
by
Médéric Boquien
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapt pcigale-plot to handle the absorption of the Lyman continuum.
parent
c79b3166
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
8 deletions
+21
-8
pcigale/creation_modules/nebular.py
pcigale/creation_modules/nebular.py
+1
-0
pcigale_plots/__init__.py
pcigale_plots/__init__.py
+20
-8
No files found.
pcigale/creation_modules/nebular.py
View file @
ec9cd372
...
...
@@ -170,6 +170,7 @@ class NebularEmission(CreationModule):
lines
.
ratio
*
NLy_old
*
self
.
conv_line
)
sed
.
add_contribution
(
'nebular.lines_young'
,
lines
.
wave
,
lines
.
ratio
*
NLy_young
*
self
.
conv_line
)
print
(
lines
.
ratio
,
NLy_young
,
self
.
conv_line
,
lines
.
ratio
*
NLy_young
*
self
.
conv_line
)
sed
.
add_contribution
(
'nebular.continuum_old'
,
cont
.
wave
,
cont
.
lumin
*
NLy_old
*
self
.
conv_cont
)
...
...
pcigale_plots/__init__.py
View file @
ec9cd372
...
...
@@ -164,14 +164,26 @@ def _sed_worker(obs, mod, filters, sed_type, nologo):
ax2
=
plt
.
subplot
(
gs
[
1
])
# Stellar emission
ax1
.
loglog
(
wavelength_spec
[
wsed
],
(
sed
[
'stellar.young'
][
wsed
]
+
sed
[
'attenuation.stellar.young'
][
wsed
]
+
sed
[
'stellar.old'
][
wsed
]
+
sed
[
'attenuation.stellar.old'
][
wsed
]),
label
=
"Stellar attenuated "
,
color
=
'orange'
,
marker
=
None
,
nonposy
=
'clip'
,
linestyle
=
'-'
,
linewidth
=
0.5
)
if
'nebular.absorption_young'
in
sed
.
columns
:
ax1
.
loglog
(
wavelength_spec
[
wsed
],
(
sed
[
'stellar.young'
][
wsed
]
+
sed
[
'attenuation.stellar.young'
][
wsed
]
+
sed
[
'nebular.absorption_young'
][
wsed
]
+
sed
[
'stellar.old'
][
wsed
]
+
sed
[
'attenuation.stellar.old'
][
wsed
]
+
sed
[
'nebular.absorption_old'
][
wsed
]),
label
=
"Stellar attenuated "
,
color
=
'orange'
,
marker
=
None
,
nonposy
=
'clip'
,
linestyle
=
'-'
,
linewidth
=
0.5
)
else
:
ax1
.
loglog
(
wavelength_spec
[
wsed
],
(
sed
[
'stellar.young'
][
wsed
]
+
sed
[
'attenuation.stellar.young'
][
wsed
]
+
sed
[
'stellar.old'
][
wsed
]
+
sed
[
'attenuation.stellar.old'
][
wsed
]),
label
=
"Stellar attenuated "
,
color
=
'orange'
,
marker
=
None
,
nonposy
=
'clip'
,
linestyle
=
'-'
,
linewidth
=
0.5
)
ax1
.
loglog
(
wavelength_spec
[
wsed
],
(
sed
[
'stellar.old'
][
wsed
]
+
sed
[
'stellar.young'
][
wsed
]),
...
...
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