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
cigale
CIGALE
Commits
c23b567d
Commit
c23b567d
authored
May 22, 2015
by
Médéric Boquien
Browse files
Test whether there is a nebular component before attempting to plot it.
parent
09fe7e6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
pcigale_plots/__init__.py
View file @
c23b567d
...
...
@@ -176,17 +176,18 @@ def _sed_worker(obs, mod, filters, sed_type, nologo):
label
=
"Stellar unattenuated"
,
color
=
'b'
,
marker
=
None
,
nonposy
=
'clip'
,
linestyle
=
'--'
,
linewidth
=
0.5
)
# Nebular emission
ax1
.
loglog
(
wavelength_spec
[
wsed
],
(
sed
[
'nebular.lines_young'
][
wsed
]
+
sed
[
'nebular.lines_old'
][
wsed
]
+
sed
[
'nebular.continuum_young'
][
wsed
]
+
sed
[
'nebular.continuum_old'
][
wsed
]
+
sed
[
'attenuation.nebular.lines_young'
][
wsed
]
+
sed
[
'attenuation.nebular.lines_old'
][
wsed
]
+
sed
[
'attenuation.nebular.continuum_young'
][
wsed
]
+
sed
[
'attenuation.nebular.continuum_old'
][
wsed
]),
label
=
"Nebular emission"
,
color
=
'y'
,
marker
=
None
,
nonposy
=
'clip'
,
linewidth
=
.
5
)
if
'nebular.lines_young'
in
sed
.
columns
:
ax1
.
loglog
(
wavelength_spec
[
wsed
],
(
sed
[
'nebular.lines_young'
][
wsed
]
+
sed
[
'nebular.lines_old'
][
wsed
]
+
sed
[
'nebular.continuum_young'
][
wsed
]
+
sed
[
'nebular.continuum_old'
][
wsed
]
+
sed
[
'attenuation.nebular.lines_young'
][
wsed
]
+
sed
[
'attenuation.nebular.lines_old'
][
wsed
]
+
sed
[
'attenuation.nebular.continuum_young'
][
wsed
]
+
sed
[
'attenuation.nebular.continuum_old'
][
wsed
]),
label
=
"Nebular emission"
,
color
=
'y'
,
marker
=
None
,
nonposy
=
'clip'
,
linewidth
=
.
5
)
# Dust emission Draine & Li
if
'dust.Umin_Umin'
in
sed
.
columns
:
ax1
.
loglog
(
wavelength_spec
[
wsed
],
...
...
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