Commit 67d4743f authored by Yan Zhaojun's avatar Yan Zhaojun
Browse files

update ifs_sim

parent 200976fe
Pipeline #3984 failed with stage
in 0 seconds
...@@ -13,10 +13,21 @@ import os ...@@ -13,10 +13,21 @@ import os
from scipy.interpolate import interp1d from scipy.interpolate import interp1d
import astropy.coordinates as coord import astropy.coordinates as coord
import ctypes import ctypes
from csst_ifs_sim.support import IFSinstrumentModel
from csst_ifs_sim.support import cosmicrays # from csst_ifs_sim.support import IFSinstrumentModel
from csst_ifs_sim.support import logger as lg # from csst_ifs_sim.support import cosmicrays
from csst_ifs_sim.CTI import CTI # from csst_ifs_sim.support import logger as lg
# from csst_ifs_sim.CTI import CTI
sys.path.append('../')
from CTI import CTI
from support import logger as lg
from support import cosmicrays
from support import IFSinstrumentModel
# from optparse import OptionParser # from optparse import OptionParser
import configparser as ConfigParser import configparser as ConfigParser
import cmath import cmath
...@@ -355,6 +366,7 @@ class StrayLight(object): ...@@ -355,6 +366,7 @@ class StrayLight(object):
DESCRIPTION. DESCRIPTION.
""" """
filterIndex = {'nuv': 0, 'u': 1, 'g': 2, 'r': 3, 'i': 4, 'z': 5, 'y': 6}
sat = (ctypes.c_double*3)() sat = (ctypes.c_double*3)()
sat[:] = self.sat sat[:] = self.sat
...@@ -392,6 +404,8 @@ class StrayLight(object): ...@@ -392,6 +404,8 @@ class StrayLight(object):
DESCRIPTION. DESCRIPTION.
""" """
filterIndex = {'nuv': 0, 'u': 1, 'g': 2, 'r': 3, 'i': 4, 'z': 5, 'y': 6}
sat = (ctypes.c_double*3)() sat = (ctypes.c_double*3)()
sat[:] = self.sat sat[:] = self.sat
ob = (ctypes.c_double*3)() ob = (ctypes.c_double*3)()
...@@ -402,7 +416,7 @@ class StrayLight(object): ...@@ -402,7 +416,7 @@ class StrayLight(object):
self.slcdll.ComposeY(ob, py1, py2) self.slcdll.ComposeY(ob, py1, py2)
earth_e1 = (ctypes.c_double*7)() earth_e1 = (ctypes.c_double*7)()
self.slcdll.EarthShine(self.jtime, sat, ob, py1, earth_e1) self.slcdll.EarthShine(self.jtime, sat, ob, py1, earth_e1)
# e[7]代表7个波段的照度 # e[7]代表7个波段的照度
earth_e2 = (ctypes.c_double*7)() earth_e2 = (ctypes.c_double*7)()
......
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