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
bb5d1b1f
Commit
bb5d1b1f
authored
Apr 15, 2024
by
Yan Zhaojun
Browse files
debug
parent
0484bf5c
Changes
2
Hide whitespace changes
Inline
Side-by-side
csst_mci_sim/__pycache__/csst_mci_sim.cpython-311.pyc
View file @
bb5d1b1f
No preview for this file type
csst_mci_sim/csst_mci_sim.py
View file @
bb5d1b1f
...
@@ -4033,7 +4033,7 @@ class MCIsimulator():
...
@@ -4033,7 +4033,7 @@ class MCIsimulator():
hdu_g
.
header
[
'FLAMP'
]
=
(
np
.
int16
(
0
)
,
'status of flat lamp'
)
hdu_g
.
header
[
'FLAMP'
]
=
(
np
.
int16
(
0
)
,
'status of flat lamp'
)
hdu_g
.
header
[
'MCISTAT'
]
=
(
np
.
int16
(
0
)
,
'MCI components status parameter'
)
hdu_g
.
header
[
'MCISTAT'
]
=
(
np
.
int16
(
0
)
,
'MCI components status parameter'
)
hdu_g
.
header
[
'DATE
_
OBS'
]
=
(
data_time
[:
21
]
,
'observation date (yyyy-mm-ddThh:mm:ss.s)'
)
hdu_g
.
header
[
'DATE
-
OBS'
]
=
(
data_time
[:
21
]
,
'observation date (yyyy-mm-ddThh:mm:ss.s)'
)
hdu_g
.
header
[
'OBJECT'
]
=
(
'MCI_obj'
,
'object name'
)
hdu_g
.
header
[
'OBJECT'
]
=
(
'MCI_obj'
,
'object name'
)
hdu_g
.
header
[
'TARGET'
]
=
(
self
.
information
[
'target'
][:
15
],
'target name (hhmmss.s+ddmmss)'
)
hdu_g
.
header
[
'TARGET'
]
=
(
self
.
information
[
'target'
][:
15
],
'target name (hhmmss.s+ddmmss)'
)
...
@@ -4041,7 +4041,7 @@ class MCIsimulator():
...
@@ -4041,7 +4041,7 @@ class MCIsimulator():
hdu_g
.
header
[
'OBSID'
]
=
(
str
(
obsid
)
,
'observation ID'
)
hdu_g
.
header
[
'OBSID'
]
=
(
str
(
obsid
)
,
'observation ID'
)
hdu_g
.
header
[
'RA_OBJ'
]
=
(
float
(
self
.
information
[
'ra_obj'
])
,
'object RA (deg)'
)
hdu_g
.
header
[
'RA_OBJ'
]
=
(
float
(
self
.
information
[
'ra_obj'
])
,
'object RA (deg)'
)
hdu_g
.
header
[
'DEC_OBJ'
]
=
(
float
(
self
.
information
[
'dec_obj'
])
,
'object Dec (deg)'
)
hdu_g
.
header
[
'DEC_OBJ'
]
=
(
float
(
self
.
information
[
'dec_obj'
])
,
'object Dec (deg)'
)
hdu_g
.
header
[
'DATE-OBS'
]
=
(
data_time
[:
21
]
,
'observation date (yyyy-mm-ddThh:mm:ss.s)'
)
##### detector and Filter information #####
##### detector and Filter information #####
hdu_g
.
header
[
'FILTER'
]
=
(
self
.
filter_g
[:
6
]
,
'filter band'
)
hdu_g
.
header
[
'FILTER'
]
=
(
self
.
filter_g
[:
6
]
,
'filter band'
)
...
@@ -4414,7 +4414,7 @@ class MCIsimulator():
...
@@ -4414,7 +4414,7 @@ class MCIsimulator():
hdu_r
.
header
[
'FLAMP'
]
=
(
np
.
int16
(
0
)
,
'status of flat lamp'
)
hdu_r
.
header
[
'FLAMP'
]
=
(
np
.
int16
(
0
)
,
'status of flat lamp'
)
hdu_r
.
header
[
'MCISTAT'
]
=
(
np
.
int16
(
0
)
,
'MCI components status parameter'
)
hdu_r
.
header
[
'MCISTAT'
]
=
(
np
.
int16
(
0
)
,
'MCI components status parameter'
)
hdu_r
.
header
[
'DATE
_
OBS'
]
=
(
data_time
[:
21
]
,
'observation date (yyyy-mm-ddThh:mm:ss.s)'
)
hdu_r
.
header
[
'DATE
-
OBS'
]
=
(
data_time
[:
21
]
,
'observation date (yyyy-mm-ddThh:mm:ss.s)'
)
hdu_r
.
header
[
'OBJECT'
]
=
(
'MCI_obj'
,
'object name'
)
hdu_r
.
header
[
'OBJECT'
]
=
(
'MCI_obj'
,
'object name'
)
hdu_r
.
header
[
'TARGET'
]
=
(
self
.
information
[
'target'
][:
15
],
'target name (hhmmss.s+ddmmss)'
)
hdu_r
.
header
[
'TARGET'
]
=
(
self
.
information
[
'target'
][:
15
],
'target name (hhmmss.s+ddmmss)'
)
...
@@ -4422,8 +4422,7 @@ class MCIsimulator():
...
@@ -4422,8 +4422,7 @@ class MCIsimulator():
hdu_r
.
header
[
'OBSID'
]
=
(
str
(
obsid
)
,
'observation ID'
)
hdu_r
.
header
[
'OBSID'
]
=
(
str
(
obsid
)
,
'observation ID'
)
hdu_r
.
header
[
'RA_OBJ'
]
=
(
float
(
self
.
information
[
'ra_obj'
])
,
'object RA (deg)'
)
hdu_r
.
header
[
'RA_OBJ'
]
=
(
float
(
self
.
information
[
'ra_obj'
])
,
'object RA (deg)'
)
hdu_r
.
header
[
'DEC_OBJ'
]
=
(
float
(
self
.
information
[
'dec_obj'
])
,
'object Dec (deg)'
)
hdu_r
.
header
[
'DEC_OBJ'
]
=
(
float
(
self
.
information
[
'dec_obj'
])
,
'object Dec (deg)'
)
hdu_r
.
header
[
'DATE-OBS'
]
=
(
data_time
[:
21
]
,
'observation date (yyyy-mm-ddThh:mm:ss.s)'
)
##### detector and Filter information #####
##### detector and Filter information #####
hdu_r
.
header
[
'FILTER'
]
=
(
self
.
filter_r
[:
6
]
,
'filter band'
)
hdu_r
.
header
[
'FILTER'
]
=
(
self
.
filter_r
[:
6
]
,
'filter band'
)
##### Detector information ####
##### Detector information ####
...
@@ -4799,7 +4798,7 @@ class MCIsimulator():
...
@@ -4799,7 +4798,7 @@ class MCIsimulator():
hdu_i
.
header
[
'FLAMP'
]
=
(
np
.
int16
(
0
)
,
'status of flat lamp'
)
hdu_i
.
header
[
'FLAMP'
]
=
(
np
.
int16
(
0
)
,
'status of flat lamp'
)
hdu_i
.
header
[
'MCISTAT'
]
=
(
np
.
int16
(
0
)
,
'MCI components status parameter'
)
hdu_i
.
header
[
'MCISTAT'
]
=
(
np
.
int16
(
0
)
,
'MCI components status parameter'
)
hdu_i
.
header
[
'DATE
_
OBS'
]
=
(
data_time
[:
21
]
,
'observation date (yyyy-mm-ddThh:mm:ss.s)'
)
hdu_i
.
header
[
'DATE
-
OBS'
]
=
(
data_time
[:
21
]
,
'observation date (yyyy-mm-ddThh:mm:ss.s)'
)
hdu_i
.
header
[
'OBJECT'
]
=
(
'MCI_obj'
,
'object name'
)
hdu_i
.
header
[
'OBJECT'
]
=
(
'MCI_obj'
,
'object name'
)
hdu_i
.
header
[
'TARGET'
]
=
(
self
.
information
[
'target'
][:
15
],
'target name (hhmmss.s+ddmmss)'
)
hdu_i
.
header
[
'TARGET'
]
=
(
self
.
information
[
'target'
][:
15
],
'target name (hhmmss.s+ddmmss)'
)
...
@@ -4807,9 +4806,7 @@ class MCIsimulator():
...
@@ -4807,9 +4806,7 @@ class MCIsimulator():
hdu_i
.
header
[
'OBSID'
]
=
(
str
(
obsid
)
,
'observation ID'
)
hdu_i
.
header
[
'OBSID'
]
=
(
str
(
obsid
)
,
'observation ID'
)
hdu_i
.
header
[
'RA_OBJ'
]
=
(
float
(
self
.
information
[
'ra_obj'
])
,
'object RA (deg)'
)
hdu_i
.
header
[
'RA_OBJ'
]
=
(
float
(
self
.
information
[
'ra_obj'
])
,
'object RA (deg)'
)
hdu_i
.
header
[
'DEC_OBJ'
]
=
(
float
(
self
.
information
[
'dec_obj'
])
,
'object Dec (deg)'
)
hdu_i
.
header
[
'DEC_OBJ'
]
=
(
float
(
self
.
information
[
'dec_obj'
])
,
'object Dec (deg)'
)
hdu_i
.
header
[
'DATE-OBS'
]
=
(
data_time
[:
21
]
,
'observation date (yyyy-mm-ddThh:mm:ss.s)'
)
##### detector and Filter information #####
##### detector and Filter information #####
hdu_i
.
header
[
'FILTER'
]
=
(
self
.
filter_i
[:
6
]
,
'filter band'
)
hdu_i
.
header
[
'FILTER'
]
=
(
self
.
filter_i
[:
6
]
,
'filter band'
)
##### Detector information ####
##### Detector information ####
...
...
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