Exemplo n.º 1
0
 def test1a(self):
     '''Gaincal 1a: Default values to create a gain table'''
     msgcal = self.msfile + '.gcal'
     reference = self.reffile + '.ref1a.gcal'
     gaincal(vis=self.msfile, caltable=msgcal)
     self.assertTrue(os.path.exists(msgcal))
     
     # Compare the calibration table with a reference
     self.assertTrue(th.compTables(msgcal, reference, ['WEIGHT']))
Exemplo n.º 2
0
    def test1b(self):
        '''Gaincal 1b: Create a gain table for an MS with many spws'''
        msgcal = self.msfile + '.gcal'
        reference = self.reffile + '.ref1b.gcal'
        gaincal(vis=self.msfile, caltable=msgcal, field='0,1',spw='0', gaintype='G',minsnr=2.0,
                refant='ANT5', solint='inf',combine='')
        self.assertTrue(os.path.exists(msgcal))

        # Compare the calibration tables
        self.assertTrue(th.compTables(msgcal, reference, ['WEIGHT']))
Exemplo n.º 3
0
    def test2a(self):
        '''Gaincal 2a: Create a gain table using field selection'''
        
        msgcal = self.msfile + '.field0.gcal'
        reference = self.reffile + '.ref2a.gcal'
        gaincal(vis=self.msfile, caltable=msgcal, field='0', gaintype='G',solint='int',
                combine='',refant='VA02')
        self.assertTrue(os.path.exists(msgcal))

        # Compare the calibration tables
        self.assertTrue(th.compTables(msgcal, reference, ['WEIGHT']))