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
99d8c5a7
Commit
99d8c5a7
authored
Feb 23, 2023
by
xin
Browse files
obsID
parent
522091c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
ObservationSim/Config/Header/ImageHeader.py
View file @
99d8c5a7
...
...
@@ -300,8 +300,8 @@ def WCS_def(xlen = 9216, ylen = 9232, gapy = 898.0, gapx1 = 534, gapx2 = 1309, r
def
generatePrimaryHeader
(
xlen
=
9216
,
ylen
=
9232
,
pointNum
=
'1'
,
ra
=
60
,
dec
=
-
40
,
psize
=
0.074
,
row_num
=
1
,
col_num
=
1
,
date
=
'200930'
,
time_obs
=
'120000'
,
im_type
=
'MS'
,
exptime
=
150.
,
sat_pos
=
[
0.
,
0.
,
0.
],
sat_vel
=
[
0.
,
0.
,
0.
]):
#TODO project_cycle is temporary, is not in header defined, delete in future
def
generatePrimaryHeader
(
xlen
=
9216
,
ylen
=
9232
,
pointNum
=
'1'
,
ra
=
60
,
dec
=
-
40
,
psize
=
0.074
,
row_num
=
1
,
col_num
=
1
,
date
=
'200930'
,
time_obs
=
'120000'
,
im_type
=
'MS'
,
exptime
=
150.
,
sat_pos
=
[
0.
,
0.
,
0.
],
sat_vel
=
[
0.
,
0.
,
0.
]
,
project_cycle
=
6
):
# array_size1, array_size2, flux, sigma = int(argv[1]), int(argv[2]), 1000.0, 5.0
...
...
@@ -335,8 +335,8 @@ def generatePrimaryHeader(xlen = 9216, ylen = 9232, pointNum = '1', ra = 60, dec
h_prim
[
'DETECTOR'
]
=
'CHIP'
+
CCDID
[
k
-
1
].
rjust
(
2
,
'0'
)
h_prim
[
'RA_OBJ'
]
=
ra
h_prim
[
'DEC_OBJ'
]
=
dec
h_prim
[
'OBJECT'
]
=
'1'
+
pointNum
.
rjust
(
8
,
'0'
)
h_prim
[
'OBSID'
]
=
'1'
+
pointNum
.
rjust
(
8
,
'0'
)
h_prim
[
'OBJECT'
]
=
'1'
+
str
(
int
(
project_cycle
))
+
pointNum
.
rjust
(
7
,
'0'
)
h_prim
[
'OBSID'
]
=
'1'
+
str
(
int
(
project_cycle
))
+
pointNum
.
rjust
(
7
,
'0'
)
h_prim
[
'TELFOCUS'
]
=
'f/14'
h_prim
[
'EXPTIME'
]
=
exptime
...
...
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