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
19fd5ed7
Commit
19fd5ed7
authored
Oct 28, 2024
by
Yan Zhaojun
Browse files
update
parent
ad47740b
Pipeline
#7154
passed with stage
in 0 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
csst_ifs_sim/csst_ifs_sim.py
View file @
19fd5ed7
...
...
@@ -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
[
'rn
2
_b'
],
size
=
(
1344
,
2418
))
loc
=
0.0
,
scale
=
self
.
information
[
'rn
1
_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
[
'rn
1
_b'
],
size
=
(
1344
,
2418
))
loc
=
0.0
,
scale
=
self
.
information
[
'rn
2
_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
[
'rn
2
_r'
],
size
=
(
1856
,
3442
))
loc
=
0.0
,
scale
=
self
.
information
[
'rn
1
_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
[
'rn
1
_r'
],
size
=
(
1856
,
3442
))
loc
=
0.0
,
scale
=
self
.
information
[
'rn
2
_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
[
'bias
2
_b'
]
self
.
image_b
[
0
:
1344
,
0
:
2418
]
+=
self
.
information
[
'bias
1
_b'
]
# ######### zone 3 #################
self
.
image_b
[
0
:
1344
,
2418
:
2418
*
2
]
+=
self
.
information
[
'bias
1
_b'
]
self
.
image_b
[
0
:
1344
,
2418
:
2418
*
2
]
+=
self
.
information
[
'bias
2
_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
[
'bias
2
_r'
]
self
.
image_r
[
0
:
1856
,
0
:
3442
]
+=
self
.
information
[
'bias
1
_r'
]
# ######### zone 3 #################
self
.
image_r
[
0
:
1856
,
3442
:
3442
*
2
]
+=
self
.
information
[
'bias
1
_r'
]
self
.
image_r
[
0
:
1856
,
3442
:
3442
*
2
]
+=
self
.
information
[
'bias
2
_r'
]
# ######### zone 1 ###################
self
.
image_r
[
0
:
1856
,
3442
*
2
:
3442
*
3
]
+=
self
.
information
[
'bias3_r'
]
...
...
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