コード例 #1
0
ファイル: wskalib.py プロジェクト: foxmouldy/apercal
def restor(mapname, beamname, modelname, imname):
    os.system('rm -r ' + imname)
    restor = mirexec.TaskRestore()
    restor.beam = beamname
    restor.map = mapname
    restor.model = modelname
    restor.out = imname
    restor.snarf()
コード例 #2
0
def restores(settings, fname, mode='residual'):
    restor = mirexec.TaskRestore()
    restor.model = settings.model
    restor.map = settings.map
    restor.beam = settings.beam
    restor.out = settings.res
    restor.mode = mode
    tout = restor.snarf()
    acos.taskout(restor, tout, fname)
コード例 #3
0
def restorim(settings, fname, mode='clean'):
    restor = mirexec.TaskRestore()
    restor.model = settings.model
    restor.map = settings.map
    restor.beam = settings.beam
    restor.out = settings.image
    restor.mode = mode
    tout = restor.snarf()
    acos.taskout(restor, tout, fname)
コード例 #4
0
ファイル: mfcal.py プロジェクト: foxmouldy/apercal
def restor(vis, i):
    restor = mirexec.TaskRestore()
    restor.model = vis.replace('.uv', '.model' + str(i))
    restor.beam = vis.replace('.uv', '.beam' + str(i))
    restor.map = vis.replace('.uv', '.map' + str(i))
    restor.out = vis.replace('.uv', '.image' + str(i))
    tout = restor.snarf()
    acos.taskout(restor, tout, 'restor.txt')
    restor.mode = 'residual'
    restor.out = vis.replace('.uv', '.res' + str(i))
    tout = restor.snarf()
    acos.taskout(restor, tout, 'restor.txt')
コード例 #5
0
def restor(params, mode='clean'):
    restor = mirexec.TaskRestore()
    restor.beam = params.beam
    restor.map = params.map
    restor.model = params.model
    if mode != 'clean':
        restor.out = params.residual
        restor.mode = 'residual'
    else:
        restor.out = params.image
        restor.mode = 'clean'

    shrun('rm -r ' + restor.out)
    tout = restor.snarf()
コード例 #6
0
ファイル: apercal_selfcal.py プロジェクト: foxmouldy/apercal
def restor(params, mode='clean'):	
	restor = mirexec.TaskRestore()