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_mci_sim
Commits
04b66f9b
Commit
04b66f9b
authored
Apr 14, 2024
by
Yan Zhaojun
Browse files
test
parent
07969ce8
Pipeline
#4049
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
csst_mci_sim/csst_mci_sim.py
View file @
04b66f9b
...
...
@@ -1738,7 +1738,7 @@ class MCIsimulator():
# np.save('umag.npy', df3['umag'] )
self
.
star
=
df3
self
.
log
.
info
(
'load star catlog successfully'
)
del
da
,
df2
,
df3
...
...
@@ -1878,6 +1878,8 @@ class MCIsimulator():
nsrcs
=
len
(
self
.
star
[
'ra_gaia'
])
+
8
self
.
log
.
info
(
'load star catlog successfully'
)
##################################################################
obj
=
dict
()
obj
[
'g'
]
=
np
.
zeros
(
3
)
...
...
@@ -1919,8 +1921,12 @@ class MCIsimulator():
y_sat
=
float
(
self
.
orbit_pars
[
self
.
orbit_exp_num
,
2
])
z_sat
=
float
(
self
.
orbit_pars
[
self
.
orbit_exp_num
,
3
])
self
.
log
.
info
(
'load star catlog 111'
)
wave0
,
zodi0
=
self
.
zodiacal
(
ra
,
dec
,
self
.
TianCe_day
)
# erg/s/cm^2/A/arcsec^2
self
.
log
.
info
(
'load star catlog 2222'
)
# EarthShine from straylight
sl
=
StrayLight
(
self
.
information
[
'dir_path'
],
jtime
=
time_jd
,
sat
=
np
.
array
([
x_sat
,
y_sat
,
z_sat
]),
radec
=
np
.
array
([(
ra
*
u
.
degree
).
value
,
(
dec
*
u
.
degree
).
value
]))
...
...
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