Commits
Jan-Willem Steeb authored cdd935e9657
3402 3402 | os.system('cp -r std.psf.tt0 '+self.img+'.psf.tt0') |
3403 3403 | os.system('cp -r std.psf.tt1 '+self.img+'.psf.tt1') |
3404 3404 | os.system('cp -r std.psf.tt2 '+self.img+'.psf.tt2') |
3405 3405 | |
3406 3406 | ## Restart tclean with calcres=False and calcpsf=False |
3407 3407 | tclean(vis=self.msfile, imagename=self.img,niter=0,specmode='mfs',spw='*',imsize=1024, phasecenter=phasecenter,cell='10.0arcsec',gridder='awproject',field=field,cfcache=cfcache_path, conjbeams=True, wbawp=True, psterm=False,pblimit=0.1,calcres=False, calcpsf=False,deconvolver='mtmfs',nterms=2,reffreq='1.5GHz',parallel=self.parallel) |
3408 3408 | report=self.th.checkall(imval=[(self.img+'.image.tt0', 0.974559485912,[512,596,0,0]),(self.img+'.pb.tt0', 0.979797422886,[512,596,0,0]),(self.img+'.alpha', -0.542647540569,[512,596,0,0])]) |
3409 3409 | self.checkfinal(report) |
3410 3410 | |
3411 3411 | |
3412 - | def test_mtmfs_mosaic_cbFalse_onefield_usTrue(self): |
3412 + | def test_mtmfs_mosaic_cbFalse_onefield_upTrue(self): |
3413 3413 | self.prepData('refim_oneshiftpoint.mosaic.ms') |
3414 3414 | phasecenter = '' |
3415 3415 | field='0' |
3416 3416 | tclean(vis=self.msfile, imagename=self.img,niter=0,specmode='mfs',spw='*',imsize=1024, phasecenter=phasecenter,cell='10.0arcsec',gridder='mosaic',field=field, usepointing=True, conjbeams=False, wbawp=True, psterm=False,pblimit=0.1,deconvolver='mtmfs',nterms=2,reffreq='1.5GHz',pbcor=False,parallel=self.parallel) |
3417 3417 | report1=self.th.checkall(imval=[(self.img+'.image.tt0',0.5302894,[512,596,0,0]),(self.img+'.pb.tt0',0.5144197,[512,596,0,0]),(self.img+'.alpha',-3.29580,[512,596,0,0])]) |
3418 3418 | |
3419 - | tclean(vis=self.msfile, imagename=self.img,niter=10,specmode='mfs',spw='*',imsize=1024, phasecenter=phasecenter,cell='10.0arcsec',gridder='mosaic',field=field, conjbeams=False, wbawp=True, psterm=False,pblimit=0.1,deconvolver='mtmfs',nterms=2,reffreq='1.5GHz',pbcor=False,parallel=self.parallel) |
3419 + | tclean(vis=self.msfile, imagename=self.img,niter=10,specmode='mfs',spw='*',imsize=1024, phasecenter=phasecenter,cell='10.0arcsec',gridder='mosaic',field=field, usepointing=True, conjbeams=False, wbawp=True, psterm=False,pblimit=0.1,deconvolver='mtmfs',nterms=2,reffreq='1.5GHz',pbcor=False,parallel=self.parallel) |
3420 3420 | report2=self.th.checkall(imval=[(self.img+'.image.tt0',0.450807213783 ,[512,596,0,0]),(self.img+'.pb.tt0',0.514419734478,[512,596,0,0]),(self.img+'.alpha',-1.6693893671,[512,596,0,0])]) |
3421 3421 | self.checkfinal(report1+report2) |
3422 3422 | |
3423 - | def test_mtmfs_mosaic_cbFalse_twofield_usTrue(self): |
3423 + | def test_mtmfs_mosaic_cbFalse_twofield_upTrue(self): |
3424 3424 | self.prepData('refim_oneshiftpoint.mosaic.ms') |
3425 3425 | phasecenter ='J2000 19h59m28.5 +40d40m01.5' # pointing center of field0 |
3426 3426 | field='0,1' |
3427 3427 | tclean(vis=self.msfile, imagename=self.img,niter=0,specmode='mfs',spw='*',imsize=1024, phasecenter=phasecenter,cell='10.0arcsec',gridder='mosaic',field=field, usepointing=True, conjbeams=False, wbawp=True, psterm=False,pblimit=0.1,deconvolver='mtmfs',nterms=2,reffreq='1.5GHz',pbcor=False,parallel=self.parallel) |
3428 3428 | report1=self.th.checkall(imval=[(self.img+'.image.tt0', 0.97402,[512,596,0,0]),(self.img+'.pb.tt0', 0.982510,[512,596,0,0]),(self.img+'.alpha', -0.9880,[512,596,0,0])]) |
3429 3429 | |
3430 - | tclean(vis=self.msfile, imagename=self.img,niter=10,specmode='mfs',spw='*',imsize=1024, phasecenter=phasecenter,cell='10.0arcsec',gridder='mosaic',field=field, conjbeams=False, wbawp=True, psterm=False,pblimit=0.1,deconvolver='mtmfs',nterms=2,reffreq='1.5GHz',pbcor=False,parallel=self.parallel) |
3430 + | tclean(vis=self.msfile, imagename=self.img,niter=10,specmode='mfs',spw='*',imsize=1024, phasecenter=phasecenter,cell='10.0arcsec',gridder='mosaic',field=field, usepointing=True, conjbeams=False, wbawp=True, psterm=False,pblimit=0.1,deconvolver='mtmfs',nterms=2,reffreq='1.5GHz',pbcor=False,parallel=self.parallel) |
3431 3431 | report2=self.th.checkall(imval=[(self.img+'.image.tt0', 0.982747793198,[512,596,0,0]),(self.img+'.pb.tt0', 0.982510685921,[512,596,0,0]),(self.img+'.alpha', -0.69006639719,[512,596,0,0])]) |
3432 3432 | self.checkfinal(report1 + report2 + '\n Warning: values must be theoretically validated') |
3433 3433 | |
3434 3434 | |
3435 3435 | |
3436 - | def test_mtmfs_awproject_cbFalse_onefield_usTrue(self): |
3436 + | def test_mtmfs_awproject_cbFalse_onefield_upTrue(self): |
3437 3437 | self.prepData('refim_oneshiftpoint.mosaic.ms') |
3438 3438 | phasecenter ='' |
3439 3439 | field='0' |
3440 3440 | cfcache_path = refdatapath + 'cfcache_oneshiftpoint_mosaic_cbFalse' |
3441 3441 | tclean(vis=self.msfile, imagename=self.img,niter=0,specmode='mfs',spw='*',imsize=1024, phasecenter=phasecenter,cell='10.0arcsec',gridder='awproject',field=field, usepointing=True, cfcache=cfcache_path, conjbeams=False, wbawp=True, psterm=False,pblimit=0.1,deconvolver='mtmfs',nterms=2,reffreq='1.5GHz',pbcor=False,parallel=self.parallel) |
3442 3442 | report1=self.th.checkall(imval=[(self.img+'.image.tt0',0.5269711,[512,596,0,0]),(self.img+'.pb.tt0',0.50752753,[512,596,0,0]),(self.img+'.alpha',-3.24132061,[512,596,0,0])]) |
3443 3443 | |
3444 - | tclean(vis=self.msfile, imagename=self.img,niter=10,specmode='mfs',spw='*',imsize=1024, phasecenter=phasecenter,cell='10.0arcsec',gridder='awproject',field=field, cfcache=cfcache_path, conjbeams=False, wbawp=True, psterm=False,pblimit=0.1,deconvolver='mtmfs',nterms=2,reffreq='1.5GHz',pbcor=False,parallel=self.parallel) |
3444 + | tclean(vis=self.msfile, imagename=self.img,niter=10,specmode='mfs',spw='*',imsize=1024, phasecenter=phasecenter,cell='10.0arcsec',gridder='awproject',field=field, usepointing=True, cfcache=cfcache_path, conjbeams=False, wbawp=True, psterm=False,pblimit=0.1,deconvolver='mtmfs',nterms=2,reffreq='1.5GHz',pbcor=False,parallel=self.parallel) |
3445 3445 | report2=self.th.checkall(imval=[(self.img+'.image.tt0',0.451119929552,[512,596,0,0]),(self.img+'.pb.tt0',0.507527530193,[512,596,0,0]),(self.img+'.alpha',-1.65221953392,[512,596,0,0])]) |
3446 3446 | self.checkfinal(report1 + report2) |
3447 3447 | |
3448 3448 | |
3449 - | def test_mtmfs_awproject_cbFalse_twofield_usTrue(self): |
3449 + | def test_mtmfs_awproject_cbFalse_twofield_upTrue(self): |
3450 3450 | self.prepData('refim_oneshiftpoint.mosaic.ms') |
3451 3451 | phasecenter ='J2000 19h59m28.5 +40d40m01.5' # pointing center of field0 |
3452 3452 | field='0,1' |
3453 3453 | cfcache_path = refdatapath + 'cfcache_oneshiftpoint_mosaic_cbFalse' |
3454 3454 | tclean(vis=self.msfile, imagename=self.img,niter=0,specmode='mfs',spw='*',imsize=1024, phasecenter=phasecenter,cell='10.0arcsec',gridder='awproject',field=field, usepointing=True, cfcache=cfcache_path, conjbeams=False, wbawp=True, psterm=False,pblimit=0.1,deconvolver='mtmfs',nterms=2,reffreq='1.5GHz',pbcor=False,parallel=self.parallel) |
3455 3455 | report1=self.th.checkall(imval=[(self.img+'.image.tt0',0.97862583398,[512,596,0,0]),(self.img+'.pb.tt0',0.979142010212,[512,596,0,0]),(self.img+'.alpha',-1.24368548393,[512,596,0,0])]) |
3456 3456 | |
3457 3457 | |
3458 3458 | tclean(vis=self.msfile, imagename=self.img,niter=10,specmode='mfs',spw='*',imsize=1024, phasecenter=phasecenter,cell='10.0arcsec',gridder='awproject', field=field, usepointing=True, cfcache=cfcache_path, conjbeams=False, wbawp=True, psterm=False,pblimit=0.1,deconvolver='mtmfs',nterms=2,reffreq='1.5GHz',pbcor=False,parallel=self.parallel) |
3459 3459 | report2=self.th.checkall(imval=[(self.img+'.image.tt0',0.975049376488,[512,596,0,0]),(self.img+'.pb.tt0',0.979141950607,[512,596,0,0]),(self.img+'.alpha',-0.80353230238,[512,596,0,0])]) |