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
5ee85e61
Commit
5ee85e61
authored
May 22, 2025
by
GZhao
Browse files
update L0 data model.
parent
b0440f6a
Pipeline
#8351
passed with stage
in 0 seconds
Changes
4
Pipelines
2
Expand all
Hide whitespace changes
Inline
Side-by-side
csst_cpic_sim/camera.py
View file @
5ee85e61
...
@@ -373,7 +373,7 @@ class CpicVisEmccd(object):
...
@@ -373,7 +373,7 @@ class CpicVisEmccd(object):
self
.
nonlinear_coefficient
=
-
0.1
self
.
nonlinear_coefficient
=
-
0.1
self
.
detector_name
=
'
CCD201-20-EM
'
self
.
detector_name
=
'
VIS
'
self
.
ccd_label
=
'EMCCD'
self
.
ccd_label
=
'EMCCD'
self
.
pitch_size
=
13
self
.
pitch_size
=
13
...
...
csst_cpic_sim/config.py
View file @
5ee85e61
...
@@ -81,7 +81,7 @@ config['bands'] = {
...
@@ -81,7 +81,7 @@ config['bands'] = {
}
}
config
[
'diameter'
]
=
2
# in meters
config
[
'diameter'
]
=
2
# in meters
config
[
'platescale'
]
=
0.016153
config
[
'platescale'
]
=
0.016153
config
[
'datamodel'
]
=
f
'
{
cpism_refdata
}
/io
/csst-cpic-l0.toml'
config
[
'datamodel'
]
=
f
'
{
os
.
path
.
dirname
(
config_aim
)
}
/csst-cpic-l0.toml'
config
[
'log_dir'
]
=
f
'
{
cpism_refdata
}
/log'
config
[
'log_dir'
]
=
f
'
{
cpism_refdata
}
/log'
config
[
'log_level'
]
=
'info'
config
[
'log_level'
]
=
'info'
...
...
csst_cpic_sim/data/csst-cpic-l0.toml
0 → 100644
View file @
5ee85e61
This diff is collapsed.
Click to expand it.
csst_cpic_sim/io.py
View file @
5ee85e61
...
@@ -427,10 +427,10 @@ def frame_header(obs_info, index, primary_header, camera_dict):
...
@@ -427,10 +427,10 @@ def frame_header(obs_info, index, primary_header, camera_dict):
header
[
'FILTER'
]
=
obs_info
[
'band'
]
header
[
'FILTER'
]
=
obs_info
[
'band'
]
header
[
'DETSN'
]
=
'00000000000'
header
[
'DETSN'
]
=
'00000000000'
header
[
'DET
NAME
'
]
=
camera_config
[
'detector_name'
]
header
[
'DET
ECTOR
'
]
=
camera_config
[
'detector_name'
]
header
[
'
CHIP
LAB'
]
=
camera_config
[
'ccd_label'
]
header
[
'
DET
LAB
EL
'
]
=
camera_config
[
'ccd_label'
]
frame_info
=
obs_info
[
'frame_info'
][
index
]
frame_info
=
obs_info
[
'frame_info'
][
index
]
header
[
'
CHIP
TEMP'
]
=
float
(
frame_info
[
'chiptemp'
])
+
273.15
header
[
'
DET
TEMP'
]
=
float
(
frame_info
[
'chiptemp'
])
+
273.15
header
[
'DEWTEMP'
]
=
float
(
camera_config
[
'cooler_temp'
])
+
273.15
header
[
'DEWTEMP'
]
=
float
(
camera_config
[
'cooler_temp'
])
+
273.15
header
[
'DETSIZE'
]
=
f
"
{
imgszx
}
*
{
imgszy
}
"
header
[
'DETSIZE'
]
=
f
"
{
imgszx
}
*
{
imgszy
}
"
header
[
'IMGINDEX'
]
=
index
+
1
header
[
'IMGINDEX'
]
=
index
+
1
...
...
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