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
csst-sims
csst_msc_sim
Commits
4f12b49b
Commit
4f12b49b
authored
Apr 08, 2024
by
Fang Yuedong
Browse files
scale wavelengths by 1+z for qso sed
parent
24fcd003
Changes
1
Hide whitespace changes
Inline
Side-by-side
Catalog/C6_50sqdeg.py
View file @
4f12b49b
...
@@ -454,7 +454,7 @@ class Catalog(CatalogBase):
...
@@ -454,7 +454,7 @@ class Catalog(CatalogBase):
elif
obj
.
type
==
'quasar'
:
elif
obj
.
type
==
'quasar'
:
flux
=
self
.
agn_seds
[
obj
.
agnsed_file
][
int
(
obj
.
qsoindex
)]
*
1e-17
flux
=
self
.
agn_seds
[
obj
.
agnsed_file
][
int
(
obj
.
qsoindex
)]
*
1e-17
flux
[
flux
<
0
]
=
0.
flux
[
flux
<
0
]
=
0.
wave
=
self
.
lamb_gal
wave
=
self
.
lamb_gal
*
(
1.0
+
obj
.
z
)
else
:
else
:
raise
ValueError
(
"Object type not known"
)
raise
ValueError
(
"Object type not known"
)
speci
=
interpolate
.
interp1d
(
wave
,
flux
)
speci
=
interpolate
.
interp1d
(
wave
,
flux
)
...
...
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