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
Wu Jin
CSST simulation
Commits
601c0cb0
Commit
601c0cb0
authored
Jan 17, 2022
by
Fang Yuedong
Browse files
exp_time bug fixed
parent
2c1eaa56
Changes
1
Hide whitespace changes
Inline
Side-by-side
ObservationSim/_util.py
View file @
601c0cb0
...
...
@@ -43,6 +43,10 @@ def generate_pointing_list(config, pointing_filename=None, data_dir=None):
ipoint
+=
1
run_pointings
=
config
[
'obs_setting'
][
'run_pointings'
]
if
config
[
"obs_setting"
][
"exp_time"
]:
exp_time
=
config
[
"obs_setting"
][
"exp_time"
]
else
:
exp_time
=
150.
if
pointing_filename
and
data_dir
:
pointing_file
=
os
.
path
.
join
(
data_dir
,
pointing_filename
)
...
...
@@ -57,7 +61,7 @@ def generate_pointing_list(config, pointing_filename=None, data_dir=None):
continue
line
=
line
.
strip
()
columns
=
line
.
split
()
pointing
=
Pointing
()
pointing
=
Pointing
(
exp_time
=
exp_time
)
pointing
.
read_pointing_columns
(
columns
=
columns
,
id
=
ipoint
,
t
=
t
)
t
+=
delta_t
*
60.
pointing_list
.
append
(
pointing
)
...
...
@@ -71,6 +75,7 @@ def generate_pointing_list(config, pointing_filename=None, data_dir=None):
dec
=
config
[
"obs_setting"
][
"dec_center"
],
img_pa
=
config
[
"obs_setting"
][
"image_rot"
],
timestamp
=
t
,
exp_time
=
exp_time
,
pointing_type
=
'MS'
)
t
+=
delta_t
*
60.
...
...
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