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-sims
csst_mci_sim
Commits
82b3a54b
Commit
82b3a54b
authored
May 06, 2024
by
Yan Zhaojun
Browse files
debug
parent
6d67cc73
Pipeline
#4331
canceled with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
csst_mci_sim/csst_mci_sim.py
View file @
82b3a54b
...
...
@@ -4139,7 +4139,7 @@ class MCIsimulator():
ofd_g
.
header
.
add_comment
(
'========================================================================'
,
after
=
'DEC_OBJ'
)
ofd_g
.
header
.
add_comment
(
'========================================================================'
,
after
=
'EPOCH'
)
ofd_g
.
header
.
add_comment
(
'VERIFICATION INFORMATION'
,
after
=
'E
POCH
'
)
ofd_g
.
header
.
add_comment
(
'VERIFICATION INFORMATION'
,
after
=
'E
XPTIME
'
)
ofd_g
.
header
.
add_comment
(
'========================================================================'
,
after
=
'EPOCH'
)
#######################################################################
...
...
@@ -4332,7 +4332,7 @@ class MCIsimulator():
#### instrument status and object information ######
hdu_r
.
header
[
'TELESCOP'
]
=
(
'CSST'
,
'telescope name'
)
hdu_r
.
header
[
'INSTRUME'
]
=
(
'MCI'
,
'instrument name'
)
hdu_r
.
header
[
'CHANNEL'
]
=
(
'C
1
'
,
'channel number'
)
hdu_r
.
header
[
'CHANNEL'
]
=
(
'C
2
'
,
'channel number'
)
hdu_r
.
header
[
'FILTERNO'
]
=
(
filternum
,
'filter number'
)
hdu_r
.
header
[
'DIFFUSER'
]
=
(
bool
(
True
)
,
'insert diffuser status for flat calibration'
)
hdu_r
.
header
[
'FLAMP'
]
=
(
np
.
int16
(
0
)
,
'status of flat lamp'
)
...
...
@@ -4351,7 +4351,7 @@ class MCIsimulator():
hdu_r
.
header
[
'FILTER'
]
=
(
self
.
filter_r
[:
6
]
,
'filter band'
)
##### Detector information ####
hdu_r
.
header
[
'DETSN'
]
=
(
'E2V-CCD-290-0000000'
,
'detector serial number'
)
hdu_r
.
header
[
'DETNAME'
]
=
(
'
opt-
blue'
,
'detector name'
)
hdu_r
.
header
[
'DETNAME'
]
=
(
'blue
-opt
'
,
'detector name'
)
####need review here
...
...
@@ -4519,7 +4519,7 @@ class MCIsimulator():
ofd_r
.
header
.
add_comment
(
'========================================================================'
,
after
=
'DEC_OBJ'
)
ofd_r
.
header
.
add_comment
(
'========================================================================'
,
after
=
'EPOCH'
)
ofd_r
.
header
.
add_comment
(
'VERIFICATION INFORMATION'
,
after
=
'E
POCH
'
)
ofd_r
.
header
.
add_comment
(
'VERIFICATION INFORMATION'
,
after
=
'E
XPTIME
'
)
ofd_r
.
header
.
add_comment
(
'========================================================================'
,
after
=
'EPOCH'
)
#######################################################################
...
...
@@ -4716,7 +4716,7 @@ class MCIsimulator():
#### instrument status and object information ######
hdu_i
.
header
[
'TELESCOP'
]
=
(
'CSST'
,
'telescope name'
)
hdu_i
.
header
[
'INSTRUME'
]
=
(
'MCI'
,
'instrument name'
)
hdu_i
.
header
[
'CHANNEL'
]
=
(
'C
1
'
,
'channel number'
)
hdu_i
.
header
[
'CHANNEL'
]
=
(
'C
3
'
,
'channel number'
)
hdu_i
.
header
[
'FILTERNO'
]
=
(
filternum
,
'filter number'
)
hdu_i
.
header
[
'DIFFUSER'
]
=
(
bool
(
True
)
,
'insert diffuser status for flat calibration'
)
hdu_i
.
header
[
'FLAMP'
]
=
(
np
.
int16
(
0
)
,
'status of flat lamp'
)
...
...
@@ -4901,7 +4901,7 @@ class MCIsimulator():
ofd_i
.
header
.
add_comment
(
'========================================================================'
,
after
=
'DEC_OBJ'
)
ofd_i
.
header
.
add_comment
(
'========================================================================'
,
after
=
'EPOCH'
)
ofd_i
.
header
.
add_comment
(
'VERIFICATION INFORMATION'
,
after
=
'E
POCH
'
)
ofd_i
.
header
.
add_comment
(
'VERIFICATION INFORMATION'
,
after
=
'E
XPTIME
'
)
ofd_i
.
header
.
add_comment
(
'========================================================================'
,
after
=
'EPOCH'
)
#######################################################################
...
...
@@ -4936,6 +4936,11 @@ class MCIsimulator():
hdu_i
.
header
.
add_comment
(
'========================================================================'
,
after
=
'EPOCH'
)
hdu_i
.
header
.
add_comment
(
'VERIFICATION INFORMATION'
,
after
=
'EPOCH'
)
hdu_i
.
header
.
add_comment
(
'========================================================================'
,
after
=
'EPOCH'
)
hdu_i
.
header
.
add_comment
(
'========================================================================'
,
before
=
'CHECKSUM'
)
hdu_i
.
header
.
add_comment
(
'VERIFICATION INFORMATION'
,
before
=
'CHECKSUM'
)
hdu_i
.
header
.
add_comment
(
'========================================================================'
,
before
=
'CHECKSUM'
)
#####################################
################ finish MCI header for image layer in i channel
################ finish MCI header for image layer
...
...
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