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_ifs_sim
Commits
ad47740b
Commit
ad47740b
authored
Oct 28, 2024
by
Yan Zhaojun
Browse files
update
parent
6e9e32cf
Pipeline
#7151
passed with stage
in 0 seconds
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
csst_ifs_sim/csst_ifs_sim.py
View file @
ad47740b
...
@@ -3474,13 +3474,6 @@ class IFSsimulator():
...
@@ -3474,13 +3474,6 @@ class IFSsimulator():
"""
"""
######
######
# add random pointing error to telescope, the telescope poingt parameter in
# fits header have random pointing error
ud_ra
=
np
.
random
.
random
()
# Choose a random shift in arcsec
self
.
information
[
'ra_pnt0'
]
=
self
.
information
[
'ra_pnt0'
]
+
0.01
*
ud_ra
ud_dec
=
np
.
random
.
random
()
self
.
information
[
'dec_pnt0'
]
=
self
.
information
[
'dec_pnt0'
]
+
0.01
*
ud_dec
HeaderTest
=
'no'
HeaderTest
=
'no'
sim_ver
=
str
(
self
.
information
[
'sim_ver'
])
sim_ver
=
str
(
self
.
information
[
'sim_ver'
])
...
@@ -3514,6 +3507,14 @@ class IFSsimulator():
...
@@ -3514,6 +3507,14 @@ class IFSsimulator():
obsid
=
30100000000
+
obnum
# 3+OBSTYPE+8位曝光编号;
obsid
=
30100000000
+
obnum
# 3+OBSTYPE+8位曝光编号;
else
:
else
:
obsid
=
30200000000
+
obnum
# 3+OBSTYPE+8位曝光编号;
obsid
=
30200000000
+
obnum
# 3+OBSTYPE+8位曝光编号;
# #############################
# add random pointing error to telescope, the telescope poingt parameter in
# fits header have random pointing error
ud_ra
=
np
.
random
.
random
()
# Choose a random shift in arcsec
self
.
information
[
'ra_pnt0'
]
=
self
.
information
[
'ra_pnt0'
]
+
0.01
*
ud_ra
ud_dec
=
np
.
random
.
random
()
self
.
information
[
'dec_pnt0'
]
=
self
.
information
[
'dec_pnt0'
]
+
0.01
*
ud_dec
filename_b
=
'CSST_IFS_B_'
+
self
.
source
+
'_'
+
exp_start_str
+
\
filename_b
=
'CSST_IFS_B_'
+
self
.
source
+
'_'
+
exp_start_str
+
\
'_'
+
exp_end_str
+
'_'
+
str
(
obsid
)
+
'_B_L0_V'
+
sim_ver
'_'
+
exp_end_str
+
'_'
+
str
(
obsid
)
+
'_B_L0_V'
+
sim_ver
...
...
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