From 19fd5ed70863d01df95a5362249d4538344cfa46 Mon Sep 17 00:00:00 2001 From: yan Date: Mon, 28 Oct 2024 15:27:55 +0800 Subject: [PATCH] update --- csst_ifs_sim/csst_ifs_sim.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/csst_ifs_sim/csst_ifs_sim.py b/csst_ifs_sim/csst_ifs_sim.py index 82750af..a6842cb 100644 --- a/csst_ifs_sim/csst_ifs_sim.py +++ b/csst_ifs_sim/csst_ifs_sim.py @@ -2748,12 +2748,12 @@ class IFSsimulator(): overscan = 320 # zone 4 , OSH #### 1024, 2048 self.image_b[0:1024+overscan, 0:2048+prescan+overscan] += np.random.normal( - loc=0.0, scale=self.information['rn2_b'], size=(1344, 2418)) + loc=0.0, scale=self.information['rn1_b'], size=(1344, 2418)) # ######### zone 3, OSG ################# np.random.seed() self.image_b[0:1024+overscan, 2418:2418+2048+prescan+overscan] += np.random.normal( - loc=0.0, scale=self.information['rn1_b'], size=(1344, 2418)) + loc=0.0, scale=self.information['rn2_b'], size=(1344, 2418)) # ######### zone 1, OSE ################### np.random.seed() @@ -2770,12 +2770,12 @@ class IFSsimulator(): # red zone 4 , OSH### 1536* 3072 np.random.seed() self.image_r[0:1536+overscan, 0:3072+prescan+overscan] += np.random.normal( - loc=0.0, scale=self.information['rn2_r'], size=(1856, 3442)) + loc=0.0, scale=self.information['rn1_r'], size=(1856, 3442)) # ######### zone 3 ,OSG ################# np.random.seed() self.image_r[0:1536+overscan, 3442:3442+3072+prescan+overscan] += np.random.normal( - loc=0.0, scale=self.information['rn1_r'], size=(1856, 3442)) + loc=0.0, scale=self.information['rn2_r'], size=(1856, 3442)) # ######### zone 1 ,OSE ################### np.random.seed() @@ -3024,10 +3024,10 @@ class IFSsimulator(): ######################################################################## # blue zone 4 - self.image_b[0:1344, 0:2418] += self.information['bias2_b'] + self.image_b[0:1344, 0:2418] += self.information['bias1_b'] # ######### zone 3 ################# - self.image_b[0:1344, 2418:2418*2] += self.information['bias1_b'] + self.image_b[0:1344, 2418:2418*2] += self.information['bias2_b'] # ######### zone 1 ################### self.image_b[0:1344, 2418*2:2418*3] += self.information['bias3_b'] @@ -3042,10 +3042,10 @@ class IFSsimulator(): ####################################################################### # red zone 4 - self.image_r[0:1856, 0:3442] += self.information['bias2_r'] + self.image_r[0:1856, 0:3442] += self.information['bias1_r'] # ######### zone 3 ################# - self.image_r[0:1856, 3442:3442*2] += self.information['bias1_r'] + self.image_r[0:1856, 3442:3442*2] += self.information['bias2_r'] # ######### zone 1 ################### self.image_r[0:1856, 3442*2:3442*3] += self.information['bias3_r'] -- GitLab