Commit 04b66f9b authored by Yan Zhaojun's avatar Yan Zhaojun
Browse files

test

parent 07969ce8
Loading
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -1738,7 +1738,7 @@ class MCIsimulator():
        # np.save('umag.npy', df3['umag'] )
        self.star=df3
        
        self.log.info('load star catlog successfully')
        
        
        del da,df2,df3
        
@@ -1878,6 +1878,8 @@ class MCIsimulator():

        
        nsrcs=len(self.star['ra_gaia']) + 8
        self.log.info('load star catlog successfully')
        
        ################################################################## 
        obj=dict()   
        obj['g']=np.zeros(3)            
@@ -1919,8 +1921,12 @@ class MCIsimulator():
        y_sat=float(self.orbit_pars[self.orbit_exp_num,2])
        z_sat=float(self.orbit_pars[self.orbit_exp_num,3])
        
        
        self.log.info('load star catlog 111')
        
        wave0, zodi0 = self.zodiacal(ra, dec, self.TianCe_day)     # erg/s/cm^2/A/arcsec^2
        
        self.log.info('load star catlog 2222')
        # EarthShine from straylight
        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]))