예제 #1
0
    def test11(self):
        '''Test 11: v3, EVLA MS from X_osro_013.55979.93803716435 scan 2, full pol!'''
        myvis = self.vis_h
        os.system('rm -rf xosro2ref-reimp.ms xosro2asdm')
        self.rval =  exportasdm(vis=myvis, asdm='xosro2asdm', apcorrected=False, verbose=True)
        importevla(asdm='xosro2asdm', vis='xosro2ref-reimp.ms', online=False, verbose=True)
        self.rval = self.rval  and th.compmsmainnumcol(myvis, 'xosro2ref-reimp.ms', 1E-5)
        self.rval = self.rval and th.compmsmainboolcol(myvis, 'xosro2ref-reimp.ms')

        self.assertNotEqual(self.rval,False)
        omsname = "test"+str(11)+self.out
        os.system('rm -rf '+omsname+'; mv  xosro2asdm '+omsname)
예제 #2
0
    def test12(self):
        '''Test 12: v3, ALMA MS from uid___A002_X72bc38_X000 scan 2, only XX and YY'''
        myvis = self.vis_i
        os.system('rm -rf asdmasdm asdm-reimp.ms')

        self.rval = exportasdm(vis=myvis, asdm='asdmasdm', apcorrected=False, verbose=True)
        importasdm(asdm='asdmasdm', vis='asdm-reimp.ms', verbose=True)

        self.rval = self.rval  and th.compmsmainnumcol(myvis, 'asdm-reimp.ms', 1E-5)
        self.rval = self.rval and th.compmsmainboolcol(myvis, 'asdm-reimp.ms')

        self.assertNotEqual(self.rval,False)
        omsname = "test"+str(12)+self.out
        os.system('rm -rf '+omsname+'; mv  asdm '+omsname)
예제 #3
0
    def test11(self):
        '''Test 11: v3, EVLA MS from X_osro_013.55979.93803716435 scan 2, full pol!'''
        myvis = self.vis_h
        os.system('rm -rf xosro2ref-reimp.ms xosro2asdm')
        self.rval = exportasdm(vis=myvis,
                               asdm='xosro2asdm',
                               apcorrected=False,
                               verbose=True)
        # mirroring the importasdm arguments used to create the MS that was just exported
        importasdm(asdm='xosro2asdm',
                   vis='xosro2ref-reimp.ms',
                   process_flags=False,
                   verbose=True,
                   ocorr_mode='co',
                   with_pointing_correction=True)
        self.rval = self.rval and th.compmsmainnumcol(
            myvis, 'xosro2ref-reimp.ms', 1E-5)
        self.rval = self.rval and th.compmsmainboolcol(myvis,
                                                       'xosro2ref-reimp.ms')

        self.assertNotEqual(self.rval, False)
        omsname = "test" + str(11) + self.out
        os.system('rm -rf ' + omsname + '; mv  xosro2asdm ' + omsname)