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
bfc2ab16
Commit
bfc2ab16
authored
Apr 13, 2022
by
BO ZHANG
🏀
Browse files
tweaks
parent
a4cda538
Changes
2
Hide whitespace changes
Inline
Side-by-side
csst/msc/instrument.py
View file @
bfc2ab16
...
...
@@ -167,8 +167,8 @@ class CsstMscInstrumentProc(CsstProcessor):
wht
=
raw
.
deepcopy
(
name
=
"WHT"
,
data
=
self
.
__wht
)
flg
=
raw
.
deepcopy
(
name
=
"FLG"
,
data
=
self
.
__flg
)
img
.
set_keyword
(
"FILENAME"
,
img
.
get_keyword
(
"FILENAME"
,
hdu
=
0
).
replace
(
"_raw"
,
"_img"
),
hdu
=
0
)
wht
.
set_keyword
(
"FILENAME"
,
wht
.
get_keyword
(
"FILENAME"
,
hdu
=
0
).
replace
(
"_raw"
,
"_
img
"
),
hdu
=
0
)
flg
.
set_keyword
(
"FILENAME"
,
flg
.
get_keyword
(
"FILENAME"
,
hdu
=
0
).
replace
(
"_raw"
,
"_
im
g"
),
hdu
=
0
)
wht
.
set_keyword
(
"FILENAME"
,
wht
.
get_keyword
(
"FILENAME"
,
hdu
=
0
).
replace
(
"_raw"
,
"_
wht
"
),
hdu
=
0
)
flg
.
set_keyword
(
"FILENAME"
,
flg
.
get_keyword
(
"FILENAME"
,
hdu
=
0
).
replace
(
"_raw"
,
"_
fl
g"
),
hdu
=
0
)
return
img
,
wht
,
flg
...
...
csst/msc/pipeline.py
View file @
bfc2ab16
...
...
@@ -22,6 +22,8 @@ from csst.msc.instrument import CsstMscInstrumentProc
# from astropy.io import fits
for
i_ccd
in
range
(
6
,
26
):
if
i_ccd
in
[
10
,
21
]:
continue
# i_ccd = 6
print
(
"processing CCD {}"
.
format
(
i_ccd
))
fp_raw
=
glob
.
glob
(
"{}/MSC_MS_*{:02}_raw.fits"
.
format
(
DIR_TEST
,
i_ccd
))
...
...
@@ -29,6 +31,7 @@ for i_ccd in range(6, 26):
fp_raw
=
fp_raw
[
0
]
raw
=
CsstMscImgData
.
read
(
fp_raw
)
# in future, get_* functions grab
bias
=
raw
.
get_bias
(
PATH_BIAS
.
format
(
i_ccd
))
dark
=
raw
.
get_dark
(
PATH_DARK
.
format
(
i_ccd
))
flat
=
raw
.
get_flat
(
PATH_FLAT
.
format
(
i_ccd
))
...
...
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