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

update

parent 6e9e32cf
Loading
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -3474,13 +3474,6 @@ class IFSsimulator():
        """

        ######
        # add random pointing error to telescope, the telescope poingt parameter in
        # fits header have random pointing error
        ud_ra = np.random.random()   # Choose a random shift in arcsec
        self.information['ra_pnt0'] = self.information['ra_pnt0']+0.01*ud_ra

        ud_dec = np.random.random()
        self.information['dec_pnt0'] = self.information['dec_pnt0']+0.01*ud_dec

        HeaderTest = 'no'
        sim_ver = str(self.information['sim_ver'])
@@ -3514,6 +3507,14 @@ class IFSsimulator():
                obsid = 30100000000+obnum  # 3+OBSTYPE+8位曝光编号;
            else:
                obsid = 30200000000+obnum  # 3+OBSTYPE+8位曝光编号;
            # #############################
            # add random pointing error to telescope, the telescope poingt parameter in
            # fits header have random pointing error
            ud_ra = np.random.random()   # Choose a random shift in arcsec
            self.information['ra_pnt0'] = self.information['ra_pnt0']+0.01*ud_ra

            ud_dec = np.random.random()
            self.information['dec_pnt0'] = self.information['dec_pnt0']+0.01*ud_dec

            filename_b = 'CSST_IFS_B_'+self.source+'_'+exp_start_str + \
                '_'+exp_end_str+'_'+str(obsid)+'_B_L0_V'+sim_ver