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_msc_sim
Commits
8196e079
Commit
8196e079
authored
Dec 15, 2023
by
Wei Chengliang
Browse files
update calibration in Chip.py
parent
bbf88615
Changes
1
Hide whitespace changes
Inline
Side-by-side
ObservationSim/Instrument/Chip/Chip.py
View file @
8196e079
...
...
@@ -508,6 +508,12 @@ class Chip(FocalPlane):
### seed=SeedBiasNonuni+self.chipID,
### logger=self.logger)
BiasCombImg
=
galsim
.
Image
(
self
.
npix_x
,
self
.
npix_y
,
init_value
=
0
)
###
if
config
[
"ins_effects"
][
"add_bias"
]
==
True
:
biaslevel
=
self
.
bias_level
overscan
=
biaslevel
-
2
elif
config
[
"ins_effects"
][
"add_bias"
]
==
False
:
biaslevel
=
0
overscan
=
0
# Readout noise for Biases is not generated with random seeds. So readout noise for bias images can't be reproduced.
if
config
[
"ins_effects"
][
"cosmic_ray"
]
==
True
:
...
...
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