Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
ebf3aad0
Commit
ebf3aad0
authored
3 years ago
by
niejuzi
Browse files
Options
Download
Email Patches
Plain Diff
update code
parent
1464b4ec
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
csst/msc/calib_pos.py
+4
-3
csst/msc/calib_pos.py
with
4 additions
and
3 deletions
+4
-3
csst/msc/calib_pos.py
+
4
-
3
View file @
ebf3aad0
...
@@ -66,7 +66,7 @@ class CsstProcMscPositionCalibration(CsstProcessor):
...
@@ -66,7 +66,7 @@ class CsstProcMscPositionCalibration(CsstProcessor):
hdul_flg
.
append
(
h1
)
hdul_flg
.
append
(
h1
)
hdul_flg
.
writeto
(
output_flgnm
,
overwrite
=
True
)
hdul_flg
.
writeto
(
output_flgnm
,
overwrite
=
True
)
def
run_sextractor
(
self
,
fn_list
,
ccd_ids
):
def
run_sextractor
(
self
,
ccd_ids
):
"""
"""
Run sextractor
Run sextractor
...
@@ -87,6 +87,7 @@ class CsstProcMscPositionCalibration(CsstProcessor):
...
@@ -87,6 +87,7 @@ class CsstProcMscPositionCalibration(CsstProcessor):
sex_cat
=
self
.
dm
.
l1_sci
(
ccd_id
=
this_ccd_id
,
suffix
=
"img"
,
ext
=
"cat"
)
sex_cat
=
self
.
dm
.
l1_sci
(
ccd_id
=
this_ccd_id
,
suffix
=
"img"
,
ext
=
"cat"
)
fn
=
self
.
dm
.
l1_sci
(
ccd_id
=
this_ccd_id
,
suffix
=
"img"
,
ext
=
"fits"
)
fn
=
self
.
dm
.
l1_sci
(
ccd_id
=
this_ccd_id
,
suffix
=
"img"
,
ext
=
"fits"
)
cat_list
.
append
(
sex_cat
)
cat_list
.
append
(
sex_cat
)
fn_list
.
append
(
fn
)
config_sextractor
=
CONFIG_PATH
+
"new_csst_realtime.no.weight.sex"
config_sextractor
=
CONFIG_PATH
+
"new_csst_realtime.no.weight.sex"
sex_comd1
=
'sex -c '
+
config_sextractor
+
' '
sex_comd1
=
'sex -c '
+
config_sextractor
+
' '
...
@@ -441,8 +442,8 @@ class CsstProcMscPositionCalibration(CsstProcessor):
...
@@ -441,8 +442,8 @@ class CsstProcMscPositionCalibration(CsstProcessor):
#self.join_data(img_list, wht_list, flg_list)
#self.join_data(img_list, wht_list, flg_list)
print
(
'################## run sextractor ###################'
)
print
(
'################## run sextractor ###################'
)
p
=
Pool
()
p
=
Pool
()
prod_x
=
partial
(
self
.
run_sextractor
,
ccd_ids
)
prod_x
=
partial
(
self
.
run_sextractor
)
result
=
p
.
map
(
prod_x
,
fn_list
)
result
=
p
.
map
(
prod_x
,
ccd_ids
)
p
.
close
()
p
.
close
()
p
.
join
()
p
.
join
()
self
.
run_sextractor
(
ccd_ids
)
self
.
run_sextractor
(
ccd_ids
)
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets