Commit 506117a2 authored by GZhao's avatar GZhao
Browse files

in csst format, fits header emgain key word shoud be emset

parent c80f5734
Pipeline #4728 failed with stage
in 0 seconds
...@@ -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['emgain']) header['EMGAIN'] = float(obs_info['emset'])
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: int - emgain: float
- 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
......
...@@ -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
下载数据文件 下载数据文件
``````````````````` ```````````````````
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment