Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-sims
csst_ifs_sim
Commits
91e3a59d
Commit
91e3a59d
authored
May 10, 2024
by
Yan Zhaojun
Browse files
debug
parent
992599a0
Pipeline
#4416
passed with stage
in 0 seconds
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
csst_ifs_sim/csst_ifs_sim.py
View file @
91e3a59d
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment