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
Liu Dezi
csst_msc_sim
Commits
3321919c
Commit
3321919c
authored
Oct 28, 2023
by
Fang Yuedong
Browse files
add Config/_util.py
parent
d1bf1786
Changes
1
Show whitespace changes
Inline
Side-by-side
ObservationSim/Config/_util.py
0 → 100644
View file @
3321919c
def
get_obs_id
(
img_type
=
'SCI'
,
project_cycle
=
6
,
run_counter
=
0
,
pointing_num
=
0
):
obs_type
=
{
'SCI'
:
'01'
,
'BIAS'
:
'03'
,
'DARK'
:
'07'
,
'FLAT'
:
'11'
,
'CRS'
:
'98'
,
'CRD'
:
'99'
}
obs_id
=
'1'
+
obs_type
[
img_type
]
+
str
(
int
(
project_cycle
))
+
str
(
int
(
run_counter
)).
rjust
(
2
,
'0'
)
+
str
(
pointing_num
).
rjust
(
5
,
'0'
)
return
obs_id
def
get_file_type
(
img_type
=
'SCI'
):
file_type
=
{
'SCI'
:
'SCIE'
,
'BIAS'
:
'BIAS'
,
'DARK'
:
'DARK'
,
'FLAT'
:
'FLAT'
,
'CRS'
:
'CRS'
,
'CRD'
:
'CRD'
,
'CALS'
:
'CALS'
,
'CALF'
:
'CALF'
}
return
file_type
[
img_type
]
\ No newline at end of file
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