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

debug

parent dd1608ee
...@@ -28,6 +28,7 @@ import astropy.coordinates as coord ...@@ -28,6 +28,7 @@ import astropy.coordinates as coord
import ctypes import ctypes
import sys import sys
sys.path.append('./csst_ifs_sim') sys.path.append('./csst_ifs_sim')
conf.auto_max_age = None conf.auto_max_age = None
""" """
...@@ -234,7 +235,11 @@ class CDM03bidir(): ...@@ -234,7 +235,11 @@ class CDM03bidir():
################################################################################# #################################################################################
###modify ###modify
#sys.path.append('../so') #sys.path.append('../so')
from ifs_so import cdm03bidir try:
from ifs_so import cdm03bidir
except:
from .ifs_so import cdm03bidir
# from ifs_so.cdm03.cpython-38-x86_64-linux-gnu import cdm03bidir # from ifs_so.cdm03.cpython-38-x86_64-linux-gnu import cdm03bidir
# import cdm03bidir # import cdm03bidir
CTIed = cdm03bidir.cdm03(np.asfortranarray(data), CTIed = cdm03bidir.cdm03(np.asfortranarray(data),
...@@ -5168,7 +5173,19 @@ class IFSsimulator(): ...@@ -5168,7 +5173,19 @@ class IFSsimulator():
nphoton = flux2photons(flux_1[ilam], lam) nphoton = flux2photons(flux_1[ilam], lam)
# photons/cm2/s/A/arcsec2 # photons/cm2/s/A/arcsec2
ns = nphoton*np.ones((sizeout, sizeout)) 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 slice_image = ns*self.telarea*Width_lambda*10*exptime
......
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