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
f4cb375b
Commit
f4cb375b
authored
Apr 28, 2022
by
BO ZHANG
🏀
Browse files
save header for each image
parent
2f447c19
Changes
1
Show whitespace changes
Inline
Side-by-side
csst/msc/pipeline.py
View file @
f4cb375b
...
...
@@ -59,6 +59,8 @@ for i_ccd in range(6, 26):
img
.
writeto
(
"{}/{}.fits"
.
format
(
DIR_WORK
,
img
.
get_keyword
(
"FILENAME"
)),
overwrite
=
True
)
wht
.
writeto
(
"{}/{}.fits"
.
format
(
DIR_WORK
,
wht
.
get_keyword
(
"FILENAME"
)),
overwrite
=
True
)
flg
.
writeto
(
"{}/{}.fits"
.
format
(
DIR_WORK
,
flg
.
get_keyword
(
"FILENAME"
)),
overwrite
=
True
)
# save header
img
[
1
].
header
.
totextfile
(
"{}/{}.head"
.
format
(
DIR_WORK
,
img
.
get_keyword
(
"FILENAME"
).
replace
(
".fits"
,
""
)),
overwrite
=
True
)
"""
how to use CssMscImgData:
...
...
@@ -71,8 +73,10 @@ how to use CssMscImgData:
from
csst.msc.astrometry
import
CsstProcMscPositionCalibration
pcProc
=
CsstProcMscPositionCalibration
()
pcProc
.
prepare
(
search_radius
=
2.
,)
pcProc
.
run
(
data_list
)
cat
=
pcProc
.
run
(
data_list
)
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