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
csst-pipeline
csst_common
Commits
b0d4f4f4
Commit
b0d4f4f4
authored
Jun 15, 2023
by
BO ZHANG
🏀
Browse files
put ref files to aux/C6.2_ref_crds
parent
ebd066f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_common/data_manager.py
View file @
b0d4f4f4
...
...
@@ -544,7 +544,7 @@ class CsstMsDataManager:
if
self
.
custom_bias
is
None
:
return
os
.
path
.
join
(
self
.
path_aux
,
"C6.
1
_ref_crds"
,
"C6.
2
_ref_crds"
,
"csst_msc_{}_{:02d}_{:04d}.fits"
.
format
(
"bias"
,
detector
,
1
if
self
.
ref_version
is
None
else
self
.
ref_version
)
...
...
@@ -557,7 +557,7 @@ class CsstMsDataManager:
if
self
.
custom_dark
is
None
:
return
os
.
path
.
join
(
self
.
path_aux
,
"C6.
1
_ref_crds"
,
"C6.
2
_ref_crds"
,
"csst_msc_{}_{:02d}_{:04d}.fits"
.
format
(
"dark"
,
detector
,
1
if
self
.
ref_version
is
None
else
self
.
ref_version
)
...
...
@@ -570,7 +570,7 @@ class CsstMsDataManager:
if
self
.
custom_flat
is
None
:
return
os
.
path
.
join
(
self
.
path_aux
,
"C6.
1
_ref_crds"
,
"C6.
2
_ref_crds"
,
"csst_msc_{}_{:02d}_{:04d}.fits"
.
format
(
"flat"
,
detector
,
1
if
self
.
ref_version
is
None
else
self
.
ref_version
)
...
...
@@ -1017,6 +1017,7 @@ class CsstMsFile(dict):
self
.
dir_out
=
dir_out
# parse filename
# CSST_MSC_MS_SCIE_20270713222417_20270713222647_10160000066_01_L0_V01.fits
pattern
=
re
.
compile
(
r
"(?P<telescope>[A-Z]+)_"
r
"(?P<instrument>[A-Z]+)_"
...
...
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