Commit 91e3a59d authored by Yan Zhaojun's avatar Yan Zhaojun
Browse files

debug

parent 992599a0
Pipeline #4416 passed with stage
in 0 seconds
......@@ -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):
......@@ -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)
......@@ -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)
......
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