Commit 1b9a3808 authored by GZhao's avatar GZhao
Browse files

correct file name in file header

parent 1aef56b6
Pipeline #9428 failed with stage
in 0 seconds
...@@ -260,7 +260,7 @@ class CosmicRayFrameMaker(object): ...@@ -260,7 +260,7 @@ class CosmicRayFrameMaker(object):
exTime=expt, exTime=expt,
cr_pixelRatio=0.003*expt/600., # 5e-6/pixel , 1.3e-6 for cpic package cr_pixelRatio=0.003*expt/600., # 5e-6/pixel , 1.3e-6 for cpic package
gain=1, # gain = 1, means the unit of output image is electron gain=1, # gain = 1, means the unit of output image is electron
attachedSizes=self.attachedSize) attachedSizes=self.attachedSize, seed=seed)
return cr_map return cr_map
for i in range(len(cr_array)): for i in range(len(cr_array)):
......
...@@ -280,9 +280,9 @@ def primary_hdu( ...@@ -280,9 +280,9 @@ def primary_hdu(
# header['GROUPS'] = False # header['GROUPS'] = False
header['DATE'] = datetime_obj_to_iso(datetime.now()) header['DATE'] = datetime_obj_to_iso(datetime.now())
heaer_filename = filename[:-4] heaer_filename = filename[:-5]
if len(heaer_filename) > 68: # if len(heaer_filename) > 68:
heaer_filename = heaer_filename[:68] # heaer_filename = heaer_filename[:68]
header['FILENAME'] = heaer_filename header['FILENAME'] = heaer_filename
header['TELESCOP'] = 'CSST' header['TELESCOP'] = 'CSST'
header['INSTRUME'] = 'CPIC' header['INSTRUME'] = 'CPIC'
......
band: f520 band: f520
# emgain: 100 # emgain: 100
emset: 180 emset: 160
expt: 30 expt: 30
nframe: 2 nframe: 5
obsid: '40100000005' obsid: '40100000005'
rotation: 30 rotation: 30
dataset: cpic-v01 dataset: cpic-v01
......
...@@ -37,8 +37,7 @@ camera: ...@@ -37,8 +37,7 @@ camera:
nonlinear: false nonlinear: false
shutter: false shutter: false
csst_format: true csst_format: true
nsample: 1 nsample: 10
check_fits_header: true check_fits_header: true
output: ./example_output/ output: ./example_output/
actuator_file: ${cpism_refdata}/optics/dark_zone_0011_volt.fits
msc_cr_model: true msc_cr_model: true
...@@ -5,3 +5,5 @@ pysynphot==2.0.0 ...@@ -5,3 +5,5 @@ pysynphot==2.0.0
hcipy==0.6.0 hcipy==0.6.0
setuptools==68.2.2 setuptools==68.2.2
pandas==2.2.1 pandas==2.2.1
toml
tqdm
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