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
7f4affc7
Commit
7f4affc7
authored
Mar 23, 2023
by
BO ZHANG
🏀
Browse files
support post == ".fits"
parent
56aae2ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_common/data_manager.py
View file @
7f4affc7
...
...
@@ -517,12 +517,21 @@ class CsstMsDataManager:
"""
assert
detector
in
self
.
available_detectors
if
self
.
ver_sim
in
[
"C5.2"
,
"C6.1"
]:
fn
=
f
"
{
self
.
telescope
}
_
{
self
.
instrument
}
_
{
self
.
project
}
_
{
self
.
obs_type
}
_
{
self
.
exp_start
}
_
{
self
.
exp_stop
}
_"
\
f
"
{
self
.
obs_id
}
_
{
detector
:
02
d
}
_
{
post
}
"
if
post
==
".fits"
:
# no additional suffix
if
self
.
ver_sim
in
[
"C5.2"
,
"C6.1"
]:
fn
=
f
"
{
self
.
telescope
}
_
{
self
.
instrument
}
_
{
self
.
project
}
_
{
self
.
obs_type
}
_
{
self
.
exp_start
}
_
{
self
.
exp_stop
}
_"
\
f
"
{
self
.
obs_id
}
_
{
detector
:
02
d
}{
post
}
"
else
:
fn
=
f
"
{
self
.
telescope
}
_
{
self
.
instrument
}
_
{
self
.
project
}
_
{
self
.
obs_type
}
_
{
self
.
exp_start
}
_
{
self
.
exp_stop
}
_"
\
f
"
{
self
.
obs_id
}
_
{
detector
:
02
d
}
_L1_V
{
self
.
version
}{
post
}
"
else
:
fn
=
f
"
{
self
.
telescope
}
_
{
self
.
instrument
}
_
{
self
.
project
}
_
{
self
.
obs_type
}
_
{
self
.
exp_start
}
_
{
self
.
exp_stop
}
_"
\
f
"
{
self
.
obs_id
}
_
{
detector
:
02
d
}
_L1_V
{
self
.
version
}
_
{
post
}
"
if
self
.
ver_sim
in
[
"C5.2"
,
"C6.1"
]:
fn
=
f
"
{
self
.
telescope
}
_
{
self
.
instrument
}
_
{
self
.
project
}
_
{
self
.
obs_type
}
_
{
self
.
exp_start
}
_
{
self
.
exp_stop
}
_"
\
f
"
{
self
.
obs_id
}
_
{
detector
:
02
d
}
_
{
post
}
"
else
:
fn
=
f
"
{
self
.
telescope
}
_
{
self
.
instrument
}
_
{
self
.
project
}
_
{
self
.
obs_type
}
_
{
self
.
exp_start
}
_
{
self
.
exp_stop
}
_"
\
f
"
{
self
.
obs_id
}
_
{
detector
:
02
d
}
_L1_V
{
self
.
version
}
_
{
post
}
"
return
os
.
path
.
join
(
self
.
dir_l1
,
fn
)
def
get_bias
(
self
,
detector
=
6
):
...
...
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