Commit 5b292754 authored by Yan Zhaojun's avatar Yan Zhaojun
Browse files

test

parent 22e2bedd
Loading
Loading
Loading
Loading
Loading
+12 −5
Original line number Diff line number Diff line
@@ -1923,7 +1923,7 @@ class MCIsimulator():
        z_sat=float(self.orbit_pars[self.orbit_exp_num,3])
        
        
        self.log.info('load star catlog 111111111111111')
        
        
        wave0, zodi0 = self.zodiacal(ra, dec, self.TianCe_day)     # erg/s/cm^2/A/arcsec^2
        
@@ -1932,6 +1932,9 @@ class MCIsimulator():
        sl = StrayLight(self.information['dir_path'],jtime=time_jd, sat=np.array([x_sat, y_sat, z_sat]),
                        radec=np.array([(ra*u.degree).value, (dec*u.degree).value]))
        
        self.log.info('load star catlog 3333333333333333333333333')
        
        
        earth_e = sl.caculateEarthShineFilter(filter='r')
        star_e  =  sl.caculateStarLightFilter(filter='r')
        angle_earth = earth_angle(time_jd, x_sat, y_sat, z_sat, ra, dec)
@@ -1941,6 +1944,8 @@ class MCIsimulator():
            
        earthshine_wave0, earthshine_flux0 = ill2flux(earth_e+star_e,self.information['dir_pah'])
        
        
        self.log.info('load star catlog 444444444')
        # sample as ifs wavelength
        wave_mci = np.linspace(2500, 11000, 8501) #np.arange(2500, 11000, 1)
        f1 = interp1d(wave0, zodi0)
@@ -1961,7 +1966,7 @@ class MCIsimulator():
        
        ########################################################################################
        
        
        self.log.info('load star catlog 5555555555555')
        #########################################################################################
        
        self.cal_sky_noise()  
@@ -1985,6 +1990,8 @@ class MCIsimulator():
        ####################################################################### 
        
        if self.TianceEffect:      
            
            self.log.info('load star catlog 666666666666666')
            ra_list = self.star['ra_gaia'].tolist()
            dec_list = self.star['dec_gaia'].tolist()
            pmra_list = self.star['pmra_gaia'].tolist()
@@ -2022,7 +2029,7 @@ class MCIsimulator():
        st_magz=[]
        

        
        self.log.info('load star catlog 777777777')
        ####################   generate star image  ##########
        
        if self.debug: