Commit aa40fa36 authored by Yan Zhaojun's avatar Yan Zhaojun
Browse files

debug

parent dd1608ee
......@@ -28,6 +28,7 @@ import astropy.coordinates as coord
import ctypes
import sys
sys.path.append('./csst_ifs_sim')
conf.auto_max_age = None
"""
......@@ -234,7 +235,11 @@ class CDM03bidir():
#################################################################################
###modify
#sys.path.append('../so')
try:
from ifs_so import cdm03bidir
except:
from .ifs_so import cdm03bidir
# from ifs_so.cdm03.cpython-38-x86_64-linux-gnu import cdm03bidir
# import cdm03bidir
CTIed = cdm03bidir.cdm03(np.asfortranarray(data),
......@@ -5168,8 +5173,20 @@ class IFSsimulator():
nphoton = flux2photons(flux_1[ilam], lam)
# photons/cm2/s/A/arcsec2
ns = nphoton*np.ones((sizeout, sizeout))
##### add code 2024.7.15 #####
sim_resolution_chart=True;
if sim_resolution_chart:
#### sim resolution chart effect
###self.log.info('load resolution chart image' )
da0 = sio.loadmat('ifs_resolution_chart.mat')
img_chart = da0['img']
ns = nphoton*img_chart
slice_image = ns*self.telarea*Width_lambda*10*exptime
# #####################3 transfer: photons/cm2/s/A/arcsec2 to photons
......
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