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
b6831731
Commit
b6831731
authored
May 25, 2023
by
BO ZHANG
🏀
Browse files
add filter
parent
4a434b51
Changes
1
Show whitespace changes
Inline
Side-by-side
csst_common/data_manager.py
View file @
b6831731
...
@@ -1067,6 +1067,7 @@ class CsstMsFile(dict):
...
@@ -1067,6 +1067,7 @@ class CsstMsFile(dict):
print
(
rec
)
print
(
rec
)
raise
ae
raise
ae
header
=
rec
[
"data"
].
header
header
=
rec
[
"data"
].
header
header
[
"filter"
]
=
rec
[
"data"
][
"filter"
]
return
CsstMsFile
(
return
CsstMsFile
(
filepath
=
os
.
path
.
join
(
dfs_root
,
rec
[
"data"
].
file_path
),
filepath
=
os
.
path
.
join
(
dfs_root
,
rec
[
"data"
].
file_path
),
ver_sim
=
ver_sim
,
ver_sim
=
ver_sim
,
...
@@ -1078,7 +1079,6 @@ class CsstMsFile(dict):
...
@@ -1078,7 +1079,6 @@ class CsstMsFile(dict):
return
f
"CsstMsFile(filepath=
\"
{
self
.
filename
}
\"
, ver_sim=
\"
{
self
.
ver_sim
}
\"
, dir_out=
\"
{
self
.
dir_out
}
\"
)"
return
f
"CsstMsFile(filepath=
\"
{
self
.
filename
}
\"
, ver_sim=
\"
{
self
.
ver_sim
}
\"
, dir_out=
\"
{
self
.
dir_out
}
\"
)"
# file = CsstMsFile(
# file = CsstMsFile(
# "L1/MSC/SCI/62173/10160000108/CSST_MSC_MS_SCI_20290206174352_20290206174622_10160000108_21_L1_V01.fits")
# "L1/MSC/SCI/62173/10160000108/CSST_MSC_MS_SCI_20290206174352_20290206174622_10160000108_21_L1_V01.fits")
#
# file = CsstMsFile.from_l1id(id=17796, dfs_root="/share/dfs")
# file = CsstMsFile.from_l1id(id=17796, dfs_root="/share/dfs")
# file = CsstMsFile.from_l1id(id=12853, dfs_root="/share/dfs")
# file = CsstMsFile.from_l1id(id=12853, dfs_root="/share/dfs")
# CsstMsFile("CSST_MSC_MS_SCI_20280716184136_20280716184406_10160000099_14_L1_V01_IMG.fits")
# CsstMsFile("CSST_MSC_MS_SCI_20280716184136_20280716184406_10160000099_14_L1_V01_IMG.fits")
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