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
12f448ca
Commit
12f448ca
authored
3 years ago
by
niejuzi
Browse files
Options
Download
Email Patches
Plain Diff
update code
parent
1f9b88be
master
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
csst/msc/calib_pos.py
+11
-11
csst/msc/calib_pos.py
with
11 additions
and
11 deletions
+11
-11
csst/msc/calib_pos.py
+
11
-
11
View file @
12f448ca
...
...
@@ -190,7 +190,7 @@ class CsstProcMscPositionCalibration(CsstProcessor):
filename of the cross matched catalog: ref.cat
"""
outcat
=
self
.
dm
.
pc_ref_cat
fnmae
=
cb_fn
=
self
.
dm
.
pc_combined_file
(
"img"
,
"fits"
)
fnmae
=
self
.
dm
.
pc_combined_file
(
"img"
,
"fits"
)
hdu
=
fits
.
open
(
fname
)
header1
=
hdu
[
0
].
header
header2
=
hdu
[
1
].
header
...
...
@@ -431,16 +431,16 @@ class CsstProcMscPositionCalibration(CsstProcessor):
def
run
(
self
,
img_list
,
wht_list
,
flg_list
,
ccd_ids
,
path_gaia
,
search_radius
,
pm_correct
=
True
,
wcs_refine
=
False
,
plot
=
False
):
print
(
'preparing files for position calibration....'
)
#self.join_data(img_list, wht_list, flg_list)
print
(
'################## run sextractor ###################'
)
p
=
Pool
()
prod_x
=
partial
(
self
.
run_sextractor
)
result
=
p
.
map
(
prod_x
,
ccd_ids
)
p
.
close
()
p
.
join
()
print
(
'################## sextractor done ###################'
)
print
(
'############### combine sextractor catalog ###############'
)
self
.
combine_catalog
(
ccd_ids
)
print
(
'############### get reference catalog ###############3'
)
#
print('################## run sextractor ###################')
#
p = Pool()
#
prod_x = partial(self.run_sextractor)
#
result = p.map(prod_x, ccd_ids)
#
p.close()
#
p.join()
#
print('################## sextractor done ###################')
#
print('############### combine sextractor catalog ###############')
#
self.combine_catalog(ccd_ids)
#
print('############### get reference catalog ###############3')
self
.
get_refcat
(
img_list
,
path_gaia
=
path_gaia
,
search_radius
=
search_radius
,
silent
=
True
,
pm_correct
=
True
)
print
(
'############### run scamp ##################'
)
self
.
run_scamp
(
wcs_refine
=
wcs_refine
)
...
...
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