Skip to content
GitLab
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
6b54e6e3
Commit
6b54e6e3
authored
Jun 07, 2013
by
Yannick Roehlly
Browse files
Base the best SED plot lambda limit on restframe wavelengths
parent
2ac044f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
pcigale/stats/psum.py
View file @
6b54e6e3
...
...
@@ -28,6 +28,7 @@ from progressbar import ProgressBar
from
matplotlib
import
pyplot
as
plt
from
.
import
common
from
..warehouse
import
SedWarehouse
from
..sed
import
utils
from
..sed.modules.common
import
get_module
from
..data
import
Database
...
...
@@ -38,7 +39,7 @@ TOLERANCE = 1.e-12
RESULT_FILE
=
'psum_results.fits'
# Directory where the output files are storeds
OUT_DIR
=
'out/'
# Wavelength limits when plotting the best SED.
# Wavelength limits
(restframe)
when plotting the best SED.
PLOT_L_MIN
=
91
PLOT_L_MAX
=
1e6
...
...
@@ -303,7 +304,12 @@ class Module(common.AnalysisModule):
figure
=
plt
.
figure
()
ax
=
figure
.
add_subplot
(
111
)
plot_x
,
plot_y
=
best_sed_lambda_fnu
plot_mask
=
(
plot_x
>=
PLOT_L_MIN
)
&
(
plot_x
<=
PLOT_L_MAX
)
plot_mask
=
(
(
plot_x
>=
utils
.
redshift_wavelength
(
PLOT_L_MIN
,
obs_redshift
))
&
(
plot_x
<=
utils
.
redshift_wavelength
(
PLOT_L_MAX
,
obs_redshift
))
)
ax
.
loglog
(
plot_x
[
plot_mask
],
best_norm_factor
*
plot_y
[
plot_mask
],
'-b'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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