Loading csst_ifs_sim/ifs_data/IFS_sim_C10.config 0 → 100644 +151 −0 Original line number Diff line number Diff line [TEST] #qudrant [0,1,2,3], CCDx/y [0,1,2,3,4,5], and CCDxgap/ygap in mm quadrant = 0 CCDx = 0 CCDy = 0 CCDxgap = 1.643 CCDygap = 8.116 sky_fitsin =IFS_inputdata/FengshuaiData/NGC3359_S4301.fits result_path =ifs_sim_result bianpai_file=NGC3359_sequence_300x20_bkg.csv ### simulation software version sim_ver=10 #size of the output image array bluesize = 4000 redsize = 6000 prescan =50 overscan =320 #CCD properties fullwellcapacity = 90000 #dark noise in electrons per second dark = 0.0008333 dark1_b=0.0008 dark2_b=0.00085 dark3_b=0.00088 dark4_b=0.00083 dark1_r=0.00081 dark2_r=0.00084 dark3_r=0.00086 dark4_r=0.00085 #readout noise in electrons [default=4.5] readout = 4.0 rn1_b=4.0 rn2_b=3.5 rn3_b=4.5 rn4_b=4.8 rn1_r=4.0 rn2_r=3.9 rn3_r=4.8 rn4_r=4.9 #bias level to add in electrons [default=1000] bias = 500.0 bias1_b=500 bias2_b=525 bias3_b=485 bias4_b=515 bias1_r=510 bias2_r=515 bias3_r=495 bias4_r=512 #background in photoelectrons per second background = yes #electron/ADU conversion factor gain1_b=1.51 gain2_b=1.58 gain3_b=1.48 gain4_b=1.55 gain1_r=1.52 gain2_r=1.55 gain3_r=1.49 gain4_r=1.53 #exposure to simulate, exposure time and position on the sky (in degrees) exptime = 300.0 exposuretimes=3 ############################################## #radiation dosage at end of mission for CTI (at 10MeV protons) rdose = 8.0e9 #charge trap information file parallelTrapfile =IFS_inputdata/cdm_euclid_parallel.dat serialTrapfile =IFS_inputdata/cdm_euclid_serial.dat #cosmetic defects input file cosmeticsFile_b =IFS_inputdata/Cosmetics_b.txt cosmeticsFile_r =IFS_inputdata/Cosmetics_r.txt ###comicray information file cosmicraylengths=IFS_inputdata/cdf_cr_length.dat cosmicraydistance=IFS_inputdata/cdf_cr_total.dat #apply multiplicative flatfield (to emulate pixel-to-pixel non-uniformity)? flatfieldM = yes sigma=0.01 #Control flags (can be yes/no, true/false, 1/0) #add noise? darknoise = yes #add sky noise? sky_noise=yes #apply cosmetic defects? cosmetics = yes #apply radiation damage model? radiationDamage = yes #add cosmic rays? cosmicRays = yes coveringFraction=0.1 #apply bleeding effect? bleeding = yes #apply non-linearity model? nonlinearity = yes #readout Noise readoutnoise=yes #save cosmicrays map save_cosmicrays=no #apply bianpai appbianpai=yes tests/test_ifs_sim.py +12 −12 Original line number Diff line number Diff line Loading @@ -38,9 +38,9 @@ class TestDemoFunction(unittest.TestCase): dir_path = os.path.join(os.environ['UNIT_TEST_DATA_ROOT'], 'ifs_sim/') print(dir_path) print(sys.version) # ##configfile = dir_path+'IFS_inputdata/configData/IFS_sim_C90.config' # ##configfile = dir_path+'IFS_inputdata/configData/IFS_sim_C10.config' configfile = './csst_ifs_sim/ifs_data/IFS_sim_C90.config' configfile = './csst_ifs_sim/ifs_data/IFS_sim_C10.config' sourcein = 'SCI' print(configfile) Loading Loading @@ -77,9 +77,9 @@ class TestDemoFunction(unittest.TestCase): dir_path = os.path.join(os.environ['UNIT_TEST_DATA_ROOT'], 'ifs_sim/') print(dir_path) print(sys.version) # ##configfile = dir_path+'IFS_inputdata/configData/IFS_sim_C90.config' # ##configfile = dir_path+'IFS_inputdata/configData/IFS_sim_C10.config' configfile = './csst_ifs_sim/ifs_data/IFS_sim_C90.config' configfile = './csst_ifs_sim/ifs_data/IFS_sim_C10.config' sourcein = 'BIAS' print(configfile) Loading Loading @@ -115,9 +115,9 @@ class TestDemoFunction(unittest.TestCase): dir_path = os.path.join(os.environ['UNIT_TEST_DATA_ROOT'], 'ifs_sim/') print(dir_path) print(sys.version) # ##configfile = dir_path+'IFS_inputdata/configData/IFS_sim_C90.config' # ##configfile = dir_path+'IFS_inputdata/configData/IFS_sim_C10.config' configfile = './csst_ifs_sim/ifs_data/IFS_sim_C90.config' configfile = './csst_ifs_sim/ifs_data/IFS_sim_C10.config' sourcein = 'DARK' print(configfile) Loading Loading @@ -153,9 +153,9 @@ class TestDemoFunction(unittest.TestCase): dir_path = os.path.join(os.environ['UNIT_TEST_DATA_ROOT'], 'ifs_sim/') print(dir_path) print(sys.version) # ##configfile = dir_path+'IFS_inputdata/configData/IFS_sim_C90.config' # ##configfile = dir_path+'IFS_inputdata/configData/IFS_sim_C10.config' configfile = './csst_ifs_sim/ifs_data/IFS_sim_C90.config' configfile = './csst_ifs_sim/ifs_data/IFS_sim_C10.config' sourcein = 'LAMP' print(configfile) Loading Loading @@ -192,9 +192,9 @@ class TestDemoFunction(unittest.TestCase): dir_path = os.path.join(os.environ['UNIT_TEST_DATA_ROOT'], 'ifs_sim/') print(dir_path) print(sys.version) # ##configfile = dir_path+'IFS_inputdata/configData/IFS_sim_C90.config' # ##configfile = dir_path+'IFS_inputdata/configData/IFS_sim_C10.config' configfile = './csst_ifs_sim/ifs_data/IFS_sim_C90.config' configfile = './csst_ifs_sim/ifs_data/IFS_sim_C10.config' sourcein = 'LAMP' print(configfile) Loading Loading @@ -229,9 +229,9 @@ class TestDemoFunction(unittest.TestCase): dir_path = os.path.join(os.environ['UNIT_TEST_DATA_ROOT'], 'ifs_sim/') print(dir_path) print(sys.version) # ##configfile = dir_path+'IFS_inputdata/configData/IFS_sim_C90.config' # ##configfile = dir_path+'IFS_inputdata/configData/IFS_sim_C10.config' configfile = './csst_ifs_sim/ifs_data/IFS_sim_C90.config' configfile = './csst_ifs_sim/ifs_data/IFS_sim_C10.config' sourcein = 'FLAT' print(configfile) Loading Loading
csst_ifs_sim/ifs_data/IFS_sim_C10.config 0 → 100644 +151 −0 Original line number Diff line number Diff line [TEST] #qudrant [0,1,2,3], CCDx/y [0,1,2,3,4,5], and CCDxgap/ygap in mm quadrant = 0 CCDx = 0 CCDy = 0 CCDxgap = 1.643 CCDygap = 8.116 sky_fitsin =IFS_inputdata/FengshuaiData/NGC3359_S4301.fits result_path =ifs_sim_result bianpai_file=NGC3359_sequence_300x20_bkg.csv ### simulation software version sim_ver=10 #size of the output image array bluesize = 4000 redsize = 6000 prescan =50 overscan =320 #CCD properties fullwellcapacity = 90000 #dark noise in electrons per second dark = 0.0008333 dark1_b=0.0008 dark2_b=0.00085 dark3_b=0.00088 dark4_b=0.00083 dark1_r=0.00081 dark2_r=0.00084 dark3_r=0.00086 dark4_r=0.00085 #readout noise in electrons [default=4.5] readout = 4.0 rn1_b=4.0 rn2_b=3.5 rn3_b=4.5 rn4_b=4.8 rn1_r=4.0 rn2_r=3.9 rn3_r=4.8 rn4_r=4.9 #bias level to add in electrons [default=1000] bias = 500.0 bias1_b=500 bias2_b=525 bias3_b=485 bias4_b=515 bias1_r=510 bias2_r=515 bias3_r=495 bias4_r=512 #background in photoelectrons per second background = yes #electron/ADU conversion factor gain1_b=1.51 gain2_b=1.58 gain3_b=1.48 gain4_b=1.55 gain1_r=1.52 gain2_r=1.55 gain3_r=1.49 gain4_r=1.53 #exposure to simulate, exposure time and position on the sky (in degrees) exptime = 300.0 exposuretimes=3 ############################################## #radiation dosage at end of mission for CTI (at 10MeV protons) rdose = 8.0e9 #charge trap information file parallelTrapfile =IFS_inputdata/cdm_euclid_parallel.dat serialTrapfile =IFS_inputdata/cdm_euclid_serial.dat #cosmetic defects input file cosmeticsFile_b =IFS_inputdata/Cosmetics_b.txt cosmeticsFile_r =IFS_inputdata/Cosmetics_r.txt ###comicray information file cosmicraylengths=IFS_inputdata/cdf_cr_length.dat cosmicraydistance=IFS_inputdata/cdf_cr_total.dat #apply multiplicative flatfield (to emulate pixel-to-pixel non-uniformity)? flatfieldM = yes sigma=0.01 #Control flags (can be yes/no, true/false, 1/0) #add noise? darknoise = yes #add sky noise? sky_noise=yes #apply cosmetic defects? cosmetics = yes #apply radiation damage model? radiationDamage = yes #add cosmic rays? cosmicRays = yes coveringFraction=0.1 #apply bleeding effect? bleeding = yes #apply non-linearity model? nonlinearity = yes #readout Noise readoutnoise=yes #save cosmicrays map save_cosmicrays=no #apply bianpai appbianpai=yes
tests/test_ifs_sim.py +12 −12 Original line number Diff line number Diff line Loading @@ -38,9 +38,9 @@ class TestDemoFunction(unittest.TestCase): dir_path = os.path.join(os.environ['UNIT_TEST_DATA_ROOT'], 'ifs_sim/') print(dir_path) print(sys.version) # ##configfile = dir_path+'IFS_inputdata/configData/IFS_sim_C90.config' # ##configfile = dir_path+'IFS_inputdata/configData/IFS_sim_C10.config' configfile = './csst_ifs_sim/ifs_data/IFS_sim_C90.config' configfile = './csst_ifs_sim/ifs_data/IFS_sim_C10.config' sourcein = 'SCI' print(configfile) Loading Loading @@ -77,9 +77,9 @@ class TestDemoFunction(unittest.TestCase): dir_path = os.path.join(os.environ['UNIT_TEST_DATA_ROOT'], 'ifs_sim/') print(dir_path) print(sys.version) # ##configfile = dir_path+'IFS_inputdata/configData/IFS_sim_C90.config' # ##configfile = dir_path+'IFS_inputdata/configData/IFS_sim_C10.config' configfile = './csst_ifs_sim/ifs_data/IFS_sim_C90.config' configfile = './csst_ifs_sim/ifs_data/IFS_sim_C10.config' sourcein = 'BIAS' print(configfile) Loading Loading @@ -115,9 +115,9 @@ class TestDemoFunction(unittest.TestCase): dir_path = os.path.join(os.environ['UNIT_TEST_DATA_ROOT'], 'ifs_sim/') print(dir_path) print(sys.version) # ##configfile = dir_path+'IFS_inputdata/configData/IFS_sim_C90.config' # ##configfile = dir_path+'IFS_inputdata/configData/IFS_sim_C10.config' configfile = './csst_ifs_sim/ifs_data/IFS_sim_C90.config' configfile = './csst_ifs_sim/ifs_data/IFS_sim_C10.config' sourcein = 'DARK' print(configfile) Loading Loading @@ -153,9 +153,9 @@ class TestDemoFunction(unittest.TestCase): dir_path = os.path.join(os.environ['UNIT_TEST_DATA_ROOT'], 'ifs_sim/') print(dir_path) print(sys.version) # ##configfile = dir_path+'IFS_inputdata/configData/IFS_sim_C90.config' # ##configfile = dir_path+'IFS_inputdata/configData/IFS_sim_C10.config' configfile = './csst_ifs_sim/ifs_data/IFS_sim_C90.config' configfile = './csst_ifs_sim/ifs_data/IFS_sim_C10.config' sourcein = 'LAMP' print(configfile) Loading Loading @@ -192,9 +192,9 @@ class TestDemoFunction(unittest.TestCase): dir_path = os.path.join(os.environ['UNIT_TEST_DATA_ROOT'], 'ifs_sim/') print(dir_path) print(sys.version) # ##configfile = dir_path+'IFS_inputdata/configData/IFS_sim_C90.config' # ##configfile = dir_path+'IFS_inputdata/configData/IFS_sim_C10.config' configfile = './csst_ifs_sim/ifs_data/IFS_sim_C90.config' configfile = './csst_ifs_sim/ifs_data/IFS_sim_C10.config' sourcein = 'LAMP' print(configfile) Loading Loading @@ -229,9 +229,9 @@ class TestDemoFunction(unittest.TestCase): dir_path = os.path.join(os.environ['UNIT_TEST_DATA_ROOT'], 'ifs_sim/') print(dir_path) print(sys.version) # ##configfile = dir_path+'IFS_inputdata/configData/IFS_sim_C90.config' # ##configfile = dir_path+'IFS_inputdata/configData/IFS_sim_C10.config' configfile = './csst_ifs_sim/ifs_data/IFS_sim_C90.config' configfile = './csst_ifs_sim/ifs_data/IFS_sim_C10.config' sourcein = 'FLAT' print(configfile) Loading