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
506117a2
Commit
506117a2
authored
May 27, 2024
by
GZhao
Browse files
in csst format, fits header emgain key word shoud be emset
parent
c80f5734
Pipeline
#4728
failed with stage
in 0 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
csst_cpic_sim/io.py
View file @
506117a2
...
@@ -445,7 +445,7 @@ def frame_header(obs_info, index, primary_header, camera_dict):
...
@@ -445,7 +445,7 @@ def frame_header(obs_info, index, primary_header, camera_dict):
header
[
'CD2_2'
]
=
np
.
cos
(
rotation
)
header
[
'CD2_2'
]
=
np
.
cos
(
rotation
)
# Readout information
# Readout information
header
[
'EMGAIN'
]
=
float
(
obs_info
[
'em
gain
'
])
header
[
'EMGAIN'
]
=
float
(
obs_info
[
'em
set
'
])
header
[
'GAIN'
]
=
float
(
camera_config
[
'ph_per_adu'
])
header
[
'GAIN'
]
=
float
(
camera_config
[
'ph_per_adu'
])
header
[
'DET_BIAS'
]
=
float
(
camera_config
[
'bias_level'
])
header
[
'DET_BIAS'
]
=
float
(
camera_config
[
'bias_level'
])
header
[
'RON'
]
=
float
(
camera_config
[
'readout_noise'
])
header
[
'RON'
]
=
float
(
camera_config
[
'readout_noise'
])
...
@@ -507,6 +507,7 @@ def save_fits_simple(images, obs_info, output_folder='./'):
...
@@ -507,6 +507,7 @@ def save_fits_simple(images, obs_info, output_folder='./'):
header
[
'nframe'
]
=
obs_info
[
'nframe'
]
header
[
'nframe'
]
=
obs_info
[
'nframe'
]
header
[
'band'
]
=
obs_info
[
'band'
]
header
[
'band'
]
=
obs_info
[
'band'
]
header
[
'emgain'
]
=
obs_info
[
'emgain'
]
header
[
'emgain'
]
=
obs_info
[
'emgain'
]
header
[
'emset'
]
=
obs_info
[
'emset'
]
header
[
'obsid'
]
=
obs_info
[
'obsid'
]
header
[
'obsid'
]
=
obs_info
[
'obsid'
]
header
[
'rotation'
]
=
obs_info
[
'rotation'
]
header
[
'rotation'
]
=
obs_info
[
'rotation'
]
shift
=
obs_info
[
'shift'
]
shift
=
obs_info
[
'shift'
]
...
@@ -542,8 +543,10 @@ def save_fits(images, obs_info, gnc_info, camera_dict={}, csst_format=True, outp
...
@@ -542,8 +543,10 @@ def save_fits(images, obs_info, gnc_info, camera_dict={}, csst_format=True, outp
- Exposure time of the each image.
- Exposure time of the each image.
- nframe: int
- nframe: int
- Number of frames in the image.
- Number of frames in the image.
- emgain:
in
t
- emgain:
floa
t
- EM gain of the camera.
- EM gain of the camera.
- emset: int
-EM gain set value
- obsid: str
- obsid: str
- Observation ID. Obsid must be 11 digits and start with 5 for CPIC. See pharse_obsid() for details.
- Observation ID. Obsid must be 11 digits and start with 5 for CPIC. See pharse_obsid() for details.
- rotation: float
- rotation: float
...
...
docs/.keep
deleted
100644 → 0
View file @
c80f5734
docs/build.zip
deleted
100644 → 0
View file @
c80f5734
File deleted
docs/installation.rst
View file @
506117a2
...
@@ -17,8 +17,8 @@ Python版本
...
@@ -17,8 +17,8 @@ Python版本
.. code-block:: bash
.. code-block:: bash
git clone https://csst-tb.bao.ac.cn/code/csst-sims/csst_cpic_sim.git
git clone https://csst-tb.bao.ac.cn/code/csst-sims/csst_cpic_sim.git
cd csst_cpic_sim
cd csst_cpic_sim
python setup.py install
python setup.py install
下载数据文件
下载数据文件
```````````````````
```````````````````
...
...
docs/notebooks/image_files/tamplate_psf.fits
deleted
100644 → 0
View file @
c80f5734
File deleted
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