Loading csst_ifs_sim/csst_ifs_sim.py +16 −4 Original line number Diff line number Diff line Loading @@ -1992,9 +1992,21 @@ class IFSsimulator(): ################### # red channle r_4 = np.sum(self.image_r[0:1536, 0:3072], axis=0) r_3 = np.sum(self.image_r[0:1536, 3072:6144], axis=0) r_2 = np.sum(self.image_r[1536:1536+1536, 3072:6144], axis=0) ###### flip right to left of part3 and part2 temp_r_3=np.fliplr(self.image_r[0:1536, 3072:6144]) ## left to right r_3 = np.sum(temp_r_3, axis=0) temp_r_2=np.fliplr(self.image_r[1536:1536+1536, 3072:6144]) ## left to right r_2 = np.sum(temp_r_2, axis=0) #r_3 = np.sum(self.image_r[0:1536, 3072:6144], axis=0) #r_2 = np.sum(self.image_r[1536:1536+1536, 3072:6144], axis=0) r_1 = np.sum(self.image_r[1536:1536+1536, 0:3072], axis=0) for k in range(1536+320): Loading Loading @@ -5253,7 +5265,7 @@ class IFSsimulator(): dy_blue+self.slice_blue['py'][k] photons_blue.y =2048-photons_blue.y #photons_blue.y =2048-photons_blue.y blue_sensor.accumulate(photons_blue, blue_img) Loading @@ -5277,7 +5289,7 @@ class IFSsimulator(): dy_red+self.slice_red['py'][k] photons_red.y =3072-photons_red.y #photons_red.y =3072-photons_red.y red_sensor.accumulate(photons_red, red_img) Loading Loading
csst_ifs_sim/csst_ifs_sim.py +16 −4 Original line number Diff line number Diff line Loading @@ -1992,9 +1992,21 @@ class IFSsimulator(): ################### # red channle r_4 = np.sum(self.image_r[0:1536, 0:3072], axis=0) r_3 = np.sum(self.image_r[0:1536, 3072:6144], axis=0) r_2 = np.sum(self.image_r[1536:1536+1536, 3072:6144], axis=0) ###### flip right to left of part3 and part2 temp_r_3=np.fliplr(self.image_r[0:1536, 3072:6144]) ## left to right r_3 = np.sum(temp_r_3, axis=0) temp_r_2=np.fliplr(self.image_r[1536:1536+1536, 3072:6144]) ## left to right r_2 = np.sum(temp_r_2, axis=0) #r_3 = np.sum(self.image_r[0:1536, 3072:6144], axis=0) #r_2 = np.sum(self.image_r[1536:1536+1536, 3072:6144], axis=0) r_1 = np.sum(self.image_r[1536:1536+1536, 0:3072], axis=0) for k in range(1536+320): Loading Loading @@ -5253,7 +5265,7 @@ class IFSsimulator(): dy_blue+self.slice_blue['py'][k] photons_blue.y =2048-photons_blue.y #photons_blue.y =2048-photons_blue.y blue_sensor.accumulate(photons_blue, blue_img) Loading @@ -5277,7 +5289,7 @@ class IFSsimulator(): dy_red+self.slice_red['py'][k] photons_red.y =3072-photons_red.y #photons_red.y =3072-photons_red.y red_sensor.accumulate(photons_red, red_img) Loading