Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-sims
csst_msc_sim
Commits
b567986b
Commit
b567986b
authored
1 year ago
by
Fang Yuedong
Browse files
Options
Download
Email Patches
Plain Diff
14 digits obs_id (add project_cycle(2) + run_counter(1))
parent
c350f6fc
release_v3.0
current_stable_for_tests
develop
master
milky_way_extinction
new_sim
revert-914004c1
sim_scheduler
sls_psf_pca_convolve
v3.1.0
v3.0.0
1 merge request
!22
add field distortion test
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ObservationSim/Config/_util.py
+2
-1
ObservationSim/Config/_util.py
with
2 additions
and
1 deletion
+2
-1
ObservationSim/Config/_util.py
+
2
-
1
View file @
b567986b
def
get_obs_id
(
img_type
=
'SCI'
,
project_cycle
=
6
,
run_counter
=
0
,
pointing_num
=
0
):
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_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'
)
# obs_id = '1'+ obs_type[img_type] + str(int(project_cycle)) + str(int(run_counter)).rjust(2, '0') + str(pointing_num).rjust(5,'0')
obs_id
=
'1'
+
obs_type
[
img_type
]
+
str
(
int
(
project_cycle
)).
rjust
(
2
,
'0'
)
+
str
(
int
(
run_counter
))
+
str
(
pointing_num
).
rjust
(
8
,
'0'
)
return
obs_id
return
obs_id
def
get_file_type
(
img_type
=
'SCI'
):
def
get_file_type
(
img_type
=
'SCI'
):
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets