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_cpic_sim
Commits
c2287032
Commit
c2287032
authored
Jun 03, 2025
by
GZhao
Browse files
update flat refdata
parent
bff1392e
Pipeline
#8527
passed with stage
in 0 seconds
Changes
4
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
csst_cpic_sim/camera.py
View file @
c2287032
...
...
@@ -325,7 +325,7 @@ class CpicVisEmccd(object):
self
.
switch
=
{
'bias_vp'
:
True
,
'bias_hp'
:
True
,
'bias_ci'
:
Tru
e
,
'bias_ci'
:
Fals
e
,
'bias_shift'
:
True
,
'cic'
:
True
,
'dark'
:
True
,
...
...
@@ -337,7 +337,8 @@ class CpicVisEmccd(object):
'cosmicray'
:
True
,
'blooming'
:
True
,
'em_blooming'
:
True
,
}
'poisson'
:
True
,
}
self
.
dark_file
=
cpism_refdata
+
'/camera/emccd_dark_current.fits'
self
.
flat_file
=
cpism_refdata
+
'/camera/emccd_flat_field.fits'
...
...
@@ -613,7 +614,6 @@ class CpicVisEmccd(object):
log
.
debug
(
f
"nonlinear effect added with coefficient
{
nonlinear_coefficient
}
"
)
image
+=
(
image
/
fullwell
)
**
2
*
nonlinear_coefficient
*
fullwell
return
image
def
time_syn
(
self
,
t
,
readout
=
True
,
initial
=
False
):
...
...
@@ -836,10 +836,15 @@ class CpicVisEmccd(object):
img_bias
=
np
.
zeros
(
self
.
bias_shape
,
dtype
=
int
)
if
self
.
switch
[
'poisson'
]:
image
=
np
.
random
.
poisson
(
image
)
else
:
image
=
np
.
round
(
image
).
astype
(
int
)
img_bias
[
self
.
pscan2
:
-
self
.
oscan2
,
self
.
pscan1
:
-
self
.
oscan1
]
=
np
.
random
.
poisson
(
image
)
]
=
image
image
=
img_bias
if
self
.
switch
[
'shutter'
]:
...
...
@@ -862,6 +867,8 @@ class CpicVisEmccd(object):
em_fix
=
self
.
em_fix_fuc_fit
(
emgain
)
*
emgain
image
=
np
.
random
.
gamma
(
image
,
em_fix
)
+
image
*
(
emgain
-
em_fix
)
fits
.
writeto
(
"image.fits"
,
image
,
overwrite
=
True
)
if
self
.
switch
[
'em_blooming'
]:
image
=
self
.
emregester_blooming
(
image
)
...
...
example/observations/02_dark.yaml
View file @
c2287032
band
:
f662
emgain
:
200
emset
:
-1
expt
:
100
emset
:
180
expt
:
10
nframe
:
2
obsid
:
'
42100000002'
rotation
:
0
...
...
@@ -17,7 +16,7 @@ gnc_info:
POS_ANG0
:
0.0
POSI0_X
:
35
POSI0_Y
:
49
POSI0_Z
:
18
POSI0_Z
:
18
cd
VELO0_X
:
36
VELO0_Y
:
24
VELO0_Z
:
18
...
...
example/observations/05_sci.yaml
View file @
c2287032
band
:
f661
emgain
:
2
00
emset
:
-
1
expt
:
10
0
#
emgain:
1
00
emset
:
1
80
expt
:
3
0
nframe
:
2
obsid
:
'
40100000005'
rotation
:
30
...
...
refdata/camera/emccd_flat_field.fits
View file @
c2287032
No preview for this file type
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