diff --git a/csst_cpic_sim/io.py b/csst_cpic_sim/io.py index 92c9f2676669dd53a7999ba0dfe018560b9dfe70..88ec80acfedb974c251e94769792afe7f387efc9 100644 --- a/csst_cpic_sim/io.py +++ b/csst_cpic_sim/io.py @@ -445,7 +445,7 @@ def frame_header(obs_info, index, primary_header, camera_dict): header['CD2_2'] = np.cos(rotation) # Readout information - header['EMGAIN'] = float(obs_info['emgain']) + header['EMGAIN'] = float(obs_info['emset']) header['GAIN'] = float(camera_config['ph_per_adu']) header['DET_BIAS'] = float(camera_config['bias_level']) header['RON'] = float(camera_config['readout_noise']) @@ -507,6 +507,7 @@ def save_fits_simple(images, obs_info, output_folder='./'): header['nframe'] = obs_info['nframe'] header['band'] = obs_info['band'] header['emgain'] = obs_info['emgain'] + header['emset'] = obs_info['emset'] header['obsid'] = obs_info['obsid'] header['rotation'] = obs_info['rotation'] shift = obs_info['shift'] @@ -542,8 +543,10 @@ def save_fits(images, obs_info, gnc_info, camera_dict={}, csst_format=True, outp - Exposure time of the each image. - nframe: int - Number of frames in the image. - - emgain: int + - emgain: float - EM gain of the camera. + - emset: int + -EM gain set value - obsid: str - Observation ID. Obsid must be 11 digits and start with 5 for CPIC. See pharse_obsid() for details. - rotation: float diff --git a/docs/.keep b/docs/.keep deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/docs/build.zip b/docs/build.zip deleted file mode 100644 index 0a7e8f58b8feafb687e65748896c4fb109547d17..0000000000000000000000000000000000000000 Binary files a/docs/build.zip and /dev/null differ diff --git a/docs/installation.rst b/docs/installation.rst index 81bd9760730bfac394d18e576a18f5997b71469c..06247d7224672c1d326dea3b843b00be021dc22b 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -17,8 +17,8 @@ Python版本 .. code-block:: bash git clone https://csst-tb.bao.ac.cn/code/csst-sims/csst_cpic_sim.git - cd csst_cpic_sim - python setup.py install + cd csst_cpic_sim + python setup.py install 下载数据文件 ``````````````````` diff --git a/docs/notebooks/image_files/tamplate_psf.fits b/docs/notebooks/image_files/tamplate_psf.fits deleted file mode 100644 index 8cec1a000dffd40e785ea83239d6a2daaf45ae7f..0000000000000000000000000000000000000000 Binary files a/docs/notebooks/image_files/tamplate_psf.fits and /dev/null differ