Commit 0c74ea42 authored by Yan Zhaojun's avatar Yan Zhaojun
Browse files

update

parent d1063852
Pipeline #7705 failed with stage
in 0 seconds
...@@ -73,11 +73,13 @@ The code has been tested, but nevertheless bugs may be lurking in corners, so ...@@ -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. please report any weird or inconsistent simulations to the author.
Note:: This class is Python 3 compatible. Note:: This class is Python 3 compatible.
2023.06.13 , add new lamp hole simulation 2023.06.13 add new lamp hole simulation
2023.12.26 add date frame transfer effect and software version 2023.12.26 add date frame transfer effect and software version
2024.1.19 add multiple exposure mode function; 2024.1.19 add multiple exposure mode function;
2024.3.20 --- update the fits header as defined order 0 data format 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.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 ############################# # ####################### functions definition #############################
...@@ -3455,7 +3457,7 @@ class IFSsimulator(): ...@@ -3455,7 +3457,7 @@ class IFSsimulator():
'ICRS', 'coordinate system of the object') 'ICRS', 'coordinate system of the object')
ofd_b.header['EQUINOX'] = (float(2000.0), '') ofd_b.header['EQUINOX'] = (float(2000.0), '')
ofd_b.header['FITSSWV'] = ( 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 ############# # ######## Object information #############
if self.source == 'SCI' or self.source == 'COMP': if self.source == 'SCI' or self.source == 'COMP':
ofd_b.header['OBJECT'] = ( ofd_b.header['OBJECT'] = (
...@@ -3781,7 +3783,7 @@ class IFSsimulator(): ...@@ -3781,7 +3783,7 @@ class IFSsimulator():
hdu_b.header['ROSPEED'] = (np.float32(100), 'readout speed (MHz)') 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() tt = write_end.utcnow()
date_time = tt.strftime("%Y-%m-%dT%H:%M:%S") date_time = tt.strftime("%Y-%m-%dT%H:%M:%S")
...@@ -3822,7 +3824,7 @@ class IFSsimulator(): ...@@ -3822,7 +3824,7 @@ class IFSsimulator():
ofd_r.header['EQUINOX'] = (float(2000.0), '') ofd_r.header['EQUINOX'] = (float(2000.0), '')
ofd_r.header['FITSSWV'] = ( 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 ############# # ######## Object information #############
if self.source == 'SCI' or self.source == 'COMP': if self.source == 'SCI' or self.source == 'COMP':
...@@ -4158,7 +4160,7 @@ class IFSsimulator(): ...@@ -4158,7 +4160,7 @@ class IFSsimulator():
self.information['bias4_r']), 'amplifier bias voltage (ADU, channel4)') self.information['bias4_r']), 'amplifier bias voltage (ADU, channel4)')
hdu_r.header['ROSPEED'] = (np.float32(100), 'readout speed (MHz)') 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") date_timer = write_end.strftime("%Y-%m-%dT%H:%M:%S")
......
...@@ -26,7 +26,7 @@ overscan =320 ...@@ -26,7 +26,7 @@ overscan =320
fullwellcapacity = 90000 fullwellcapacity = 90000
#dark noise in electrons per second #dark noise in electrons per second
dark = 0.0008333 #dark = 0.0008333
dark1_b=0.0008 dark1_b=0.0008
dark2_b=0.00085 dark2_b=0.00085
dark3_b=0.00088 dark3_b=0.00088
...@@ -39,7 +39,7 @@ dark4_r=0.00085 ...@@ -39,7 +39,7 @@ dark4_r=0.00085
#readout noise in electrons [default=4.5] #readout noise in electrons [default=4.5]
readout = 4.0 #readout = 4.0
rn1_b=4.0 rn1_b=4.0
rn2_b=3.5 rn2_b=3.5
rn3_b=4.5 rn3_b=4.5
...@@ -51,7 +51,7 @@ rn3_r=4.8 ...@@ -51,7 +51,7 @@ rn3_r=4.8
rn4_r=4.9 rn4_r=4.9
#bias level to add in electrons [default=1000] #bias level to add in electrons [default=1000]
bias = 500.0 #bias = 500.0
bias1_b=500 bias1_b=500
bias2_b=525 bias2_b=525
bias3_b=485 bias3_b=485
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment