From 0de79e17c495f5d9d542a5233f9d95b73a1f38e5 Mon Sep 17 00:00:00 2001 From: chengliang Date: Fri, 12 Apr 2024 12:49:00 +0800 Subject: [PATCH] bug fixes --- ObservationSim/sim_steps/readout_output.py | 2 +- config/obs_config_SCI_WIDE_phot.yaml | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/ObservationSim/sim_steps/readout_output.py b/ObservationSim/sim_steps/readout_output.py index 7e084b0..1702a01 100644 --- a/ObservationSim/sim_steps/readout_output.py +++ b/ObservationSim/sim_steps/readout_output.py @@ -13,7 +13,7 @@ def add_prescan_overscan(self, chip, filt, tel, pointing, catalog, obs_param): over1=chip.overscan_x, over2=chip.overscan_y) - if obs_param["poisson_and_dark"]["add_dark"] == True: + if obs_param["add_dark"] == True: ny = int(chip.npix_y/2) base_dark = (ny-1)*(chip.readout_time/ny)*chip.dark_noise chip.img.array[(chip.prescan_y+ny):-(chip.prescan_y+ny),:] = bese_dark diff --git a/config/obs_config_SCI_WIDE_phot.yaml b/config/obs_config_SCI_WIDE_phot.yaml index 89a2dc3..15ac19b 100644 --- a/config/obs_config_SCI_WIDE_phot.yaml +++ b/config/obs_config_SCI_WIDE_phot.yaml @@ -14,7 +14,8 @@ obs_type_code: "101" obs_id: "00000001" # this setting will only be used if pointing list file is not given # Define list of chips -run_chips: [8] +run_chips: [6,7,8,9,11,12,13,14,15,16,17,18,19,20,22,23,24,25] +#run_chips: [1,2,3,4,5,10,21,26,27,28,29,30] # Define observation sequence call_sequence: @@ -64,9 +65,10 @@ call_sequence: # Apply CCD Saturation & Blooming blooming: {} # # Run CTE simulation - CTE_effect: {} + ##CTE_effect: {} # Add prescan and overscan - prescan_overscan: {} + prescan_overscan: + add_dark: YES # Add bias bias: bias_16channel: YES @@ -78,4 +80,4 @@ call_sequence: # Output the final image quantization_and_output: format_output: YES -... \ No newline at end of file +... -- GitLab