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
Bo Zhang
csst
Commits
1464b4ec
Commit
1464b4ec
authored
Jun 21, 2022
by
niejuzi
Browse files
update code
parent
01052910
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst/msc/pipeline.py
View file @
1464b4ec
...
...
@@ -112,7 +112,6 @@ def do_one_exposure(ver_sim="C5.1", dir_l0="", dir_l1="", dir_pcref="", path_aux
pcProc
.
run
(
img_list
,
wht_list
,
flg_list
,
fn_list
,
ccd_ids
,
dir_pcref
,
2.0
,
pm_correct
=
True
,
wcs_refine
=
True
,
plot
=
True
)
else
:
for
this_ccd_id
in
ccd_ids
:
print
(
type
(
this_ccd_id
),
this_ccd_id
)
fp_img
=
dm
.
l1_sci
(
ccd_id
=
this_ccd_id
,
suffix
=
"img"
,
ext
=
"fits"
)
fp_wht
=
dm
.
l1_sci
(
ccd_id
=
this_ccd_id
,
suffix
=
"wht"
,
ext
=
"fits"
)
fp_flg
=
dm
.
l1_sci
(
ccd_id
=
this_ccd_id
,
suffix
=
"flg"
,
ext
=
"fits"
)
...
...
@@ -124,7 +123,7 @@ def do_one_exposure(ver_sim="C5.1", dir_l0="", dir_l1="", dir_pcref="", path_aux
flg_list
.
append
(
flg
)
fn_list
.
append
(
dm
.
l1_sci
(
ccd_id
=
this_ccd_id
,
suffix
=
"img"
,
ext
=
"fits"
))
print
(
ccd_ids
)
pcProc
.
run
(
img_list
,
wht_list
,
flg_list
,
fn_list
,
ccd_ids
,
dir_pcref
,
2.0
,
pm_correct
=
True
,
wcs_refine
=
True
,
plot
=
True
)
pcProc
.
run
(
img_list
,
wht_list
,
flg_list
,
fn_list
,
ccd_ids
=
ccd_ids
,
dir_pcref
,
2.0
,
pm_correct
=
True
,
wcs_refine
=
True
,
plot
=
True
)
pcProc
.
cleanup
()
...
...
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