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_ifs_sim
Commits
3bb8ac48
Commit
3bb8ac48
authored
Apr 24, 2024
by
Yan Zhaojun
Browse files
debug
parent
a4a58186
Pipeline
#4245
passed with stage
in 0 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
csst_ifs_sim/csst_ifs_sim.py
View file @
3bb8ac48
...
@@ -3289,9 +3289,10 @@ class IFSsimulator():
...
@@ -3289,9 +3289,10 @@ class IFSsimulator():
hdu_b
.
header
[
'NAXIS1'
]
=
(
np
.
int32
(
1344
),
'length of first data axis'
)
hdu_b
.
header
[
'NAXIS1'
]
=
(
np
.
int32
(
1344
),
'length of first data axis'
)
hdu_b
.
header
[
'NAXIS2'
]
=
(
np
.
int32
(
9672
),
'length of second data axis'
)
hdu_b
.
header
[
'NAXIS2'
]
=
(
np
.
int32
(
9672
),
'length of second data axis'
)
hdu_b
.
header
[
'NAXIS3'
]
=
(
if
self
.
information
[
'exposuretimes'
]
>
1
:
np
.
int32
(
self
.
information
[
'exposuretimes'
]),
'length of third data axis'
)
hdu_b
.
header
[
'NAXIS3'
]
=
(
np
.
int32
(
self
.
information
[
'exposuretimes'
]),
'length of third data axis'
)
if
self
.
source
==
'SCI'
or
self
.
source
==
'COMP'
:
if
self
.
source
==
'SCI'
or
self
.
source
==
'COMP'
:
hdu_b
.
header
[
'EXTNAME'
]
=
(
'SCI'
,
''
)
hdu_b
.
header
[
'EXTNAME'
]
=
(
'SCI'
,
''
)
...
@@ -3668,9 +3669,10 @@ class IFSsimulator():
...
@@ -3668,9 +3669,10 @@ class IFSsimulator():
hdu_r
.
header
[
'NAXIS2'
]
=
(
hdu_r
.
header
[
'NAXIS2'
]
=
(
np
.
int32
(
13768
),
'length of second data axis'
)
np
.
int32
(
13768
),
'length of second data axis'
)
hdu_r
.
header
[
'NAXIS3'
]
=
(
if
self
.
information
[
'exposuretimes'
]
>
1
:
np
.
int32
(
self
.
information
[
'exposuretimes'
]),
'length of third data axis'
)
hdu_r
.
header
[
'NAXIS3'
]
=
(
np
.
int32
(
self
.
information
[
'exposuretimes'
]),
'length of third data axis'
)
if
self
.
source
==
'SCI'
or
self
.
source
==
'COMP'
:
if
self
.
source
==
'SCI'
or
self
.
source
==
'COMP'
:
hdu_r
.
header
[
'EXTNAME'
]
=
(
'SCI'
,
''
)
hdu_r
.
header
[
'EXTNAME'
]
=
(
'SCI'
,
''
)
...
...
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