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
0c74ea42
Commit
0c74ea42
authored
Jan 03, 2025
by
Yan Zhaojun
Browse files
update
parent
d1063852
Pipeline
#7705
failed with stage
in 0 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
csst_ifs_sim/csst_ifs_sim.py
View file @
0c74ea42
...
...
@@ -73,11 +73,13 @@ The code has been tested, but nevertheless bugs may be lurking in corners, so
please report any weird or inconsistent simulations to the author.
Note:: This class is Python 3 compatible.
2023.06.13 , add new lamp hole simulation
2023.12.26 add date frame transfer effect and software version
2024.1.19 add multiple exposure mode function;
2024.3.20 --- update the fits header as defined order 0 data format
2024.5.10 ---updata and correct the bug of frame transfer effect simulation
2023.06.13 add new lamp hole simulation
2023.12.26 add date frame transfer effect and software version
2024.1.19 add multiple exposure mode function;
2024.3.20 update the fits header as defined order 0 data format
2024.5.10 updata and correct the bug of frame transfer effect simulation
2024.10..Access to the observation run choreography file for simulaiton
2025.1.3. delete TOML_TAG in the fits header
"""
# ####################### functions definition #############################
...
...
@@ -3455,7 +3457,7 @@ class IFSsimulator():
'ICRS'
,
'coordinate system of the object'
)
ofd_b
.
header
[
'EQUINOX'
]
=
(
float
(
2000.0
),
''
)
ofd_b
.
header
[
'FITSSWV'
]
=
(
'csst_ifs_sim_3.0.
0
'
,
'FITS creating software version'
)
'csst_ifs_sim_3.0.
1
'
,
'FITS creating software version'
)
# ######## Object information #############
if
self
.
source
==
'SCI'
or
self
.
source
==
'COMP'
:
ofd_b
.
header
[
'OBJECT'
]
=
(
...
...
@@ -3781,7 +3783,7 @@ class IFSsimulator():
hdu_b
.
header
[
'ROSPEED'
]
=
(
np
.
float32
(
100
),
'readout speed (MHz)'
)
hdu_b
.
header
[
'TOML_TAG'
]
=
(
'csst-ifs-l0-c09'
,
'the tag of toml file'
)
#
hdu_b.header['TOML_TAG'] = ('csst-ifs-l0-c09', 'the tag of toml file')
tt
=
write_end
.
utcnow
()
date_time
=
tt
.
strftime
(
"%Y-%m-%dT%H:%M:%S"
)
...
...
@@ -3822,7 +3824,7 @@ class IFSsimulator():
ofd_r
.
header
[
'EQUINOX'
]
=
(
float
(
2000.0
),
''
)
ofd_r
.
header
[
'FITSSWV'
]
=
(
'csst_ifs_sim_3.0.
0
'
,
'FITS creating software version'
)
'csst_ifs_sim_3.0.
1
'
,
'FITS creating software version'
)
# ######## Object information #############
if
self
.
source
==
'SCI'
or
self
.
source
==
'COMP'
:
...
...
@@ -4158,7 +4160,7 @@ class IFSsimulator():
self
.
information
[
'bias4_r'
]),
'amplifier bias voltage (ADU, channel4)'
)
hdu_r
.
header
[
'ROSPEED'
]
=
(
np
.
float32
(
100
),
'readout speed (MHz)'
)
hdu_r
.
header
[
'TOML_TAG'
]
=
(
'csst-ifs-l0-c09'
,
'the tag of toml file'
)
#
hdu_r.header['TOML_TAG'] = ('csst-ifs-l0-c09', 'the tag of toml file')
date_timer
=
write_end
.
strftime
(
"%Y-%m-%dT%H:%M:%S"
)
...
...
csst_ifs_sim/ifs_data/IFS_sim_C10.config
View file @
0c74ea42
...
...
@@ -26,7 +26,7 @@ overscan =320
fullwellcapacity
=
90000
#dark noise in electrons per second
dark
=
0
.
0008333
#
dark = 0.0008333
dark1_b
=
0
.
0008
dark2_b
=
0
.
00085
dark3_b
=
0
.
00088
...
...
@@ -39,7 +39,7 @@ dark4_r=0.00085
#readout noise in electrons [default=4.5]
readout
=
4
.
0
#
readout = 4.0
rn1_b
=
4
.
0
rn2_b
=
3
.
5
rn3_b
=
4
.
5
...
...
@@ -51,7 +51,7 @@ rn3_r=4.8
rn4_r
=
4
.
9
#bias level to add in electrons [default=1000]
bias
=
500
.
0
#
bias = 500.0
bias1_b
=
500
bias2_b
=
525
bias3_b
=
485
...
...
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