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

update

parent eb67f0ac
Pipeline #7596 passed with stage
in 0 seconds
......@@ -34,8 +34,6 @@ import sys
# sys.path.append('./csst_ifs_sim')
conf.auto_max_age = None
"""
"""
"""
Contact Information: zhaojunyan@shao.ac.cn
......@@ -212,8 +210,6 @@ class CDM03bidir():
:return: image that has been run through the CDM03 model
:rtype: ndarray"""""
#
# return data
iflip = iquadrant / 2
jflip = iquadrant % 2
......@@ -1524,7 +1520,6 @@ def anySampledPSFnew(wavefront, pupil, Q, sizeout):
return psf
##############################################################################
##############################################################################
......@@ -1623,16 +1618,13 @@ def getSpectrum(Spectrum0, lam, sigma):
DESCRIPTION.
"""
# %获得输入波长lambda的光谱强度
wave = Spectrum0[:, 0] # %原始光谱数据给定的波长;
Qt = Spectrum0[:, 1] # %原始光谱数据给定的光谱强度;
d = abs(lam-wave) # %计算波长距离;
if min(d) > 3*sigma:
SpmOut = 1.0/20000
else:
column = np.where(d == min(d))
SpmOut = Qt[column[0]]*np.exp(-(lam-wave[column[0]])**2/2/sigma**2)
......@@ -1664,7 +1656,6 @@ class IFSsimulator():
:type opts: OptionParser instance
"""
####################################
self.configfile = configfile
......@@ -1729,10 +1720,7 @@ class IFSsimulator():
Processes configuration information and save the information to a dictionary self.information.
The configuration file may look as follows::
[TEST]
For explanation of each field, see /data/test.config. Note that if an input field does not exist,
then the values are taken from the default instrument model as described in
support.IFSinstrumentModel.VISinformation(). Any of the defaults can be overwritten by providing
......@@ -1806,10 +1794,7 @@ class IFSsimulator():
Creates lensing parameters;
"""
#
#
self.imgtemp = dict()
self.pixel = 0.1 # arcsec, pixel scale size;
##############################################################################
......@@ -1900,7 +1885,6 @@ class IFSsimulator():
spec_erg2 = spec_erg / 4.25452e10
# self.zodiacal_wave=wave_A # in A
# self.zodiacal_flux=spec_erg2
return wave_A, spec_erg2
......@@ -2283,9 +2267,8 @@ class IFSsimulator():
return
###############################################################################
# ###########################################################################
###############################################################################
def addCosmicRays(self, idk):
"""
......
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