本文整理汇总了Python中AIPSTask.AIPSTask.inver方法的典型用法代码示例。如果您正苦于以下问题:Python AIPSTask.inver方法的具体用法?Python AIPSTask.inver怎么用?Python AIPSTask.inver使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AIPSTask.AIPSTask
的用法示例。
在下文中一共展示了AIPSTask.inver方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: pclcal
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import inver [as 别名]
def pclcal (aipsname,indisk,inver,logfiledir='./'):
uvdata = AIPSUVData (aipsname,'FITS',indisk,1)
clcal = AIPSTask ('clcal')
clcal.indata = uvdata
clcal.inver = inver
clcal.snver = inver
stdout = sys.stdout; sys.stdout = open(logfiledir+aipsname+'.log','a')
clcal.go()
sys.stdout.close(); sys.stdout = stdout
示例2: runclcal
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import inver [as 别名]
def runclcal(indata, sources, calsour, opcode, interpol, snver, inver, gainver, gainuse, refant):
clcal = AIPSTask('CLCAL')
clcal.indata = indata
clcal.sources[1:] = sources
clcal.calsour[1:] = calsour
clcal.opcode = opcode
clcal.interpol = interpol
clcal.snver = snver
clcal.inver = inver
clcal.gainver = gainver
clcal.gainuse = gainuse
clcal.refant = refant
clcal.go()
示例3: runlwpla
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import inver [as 别名]
def runlwpla(indata, outfile):
plver=0
outfile = re.sub(r"\s+", '-', outfile)
for tab in indata.tables :
if 'PL' in tab[1] :
plver = plver + 1
if os.path.exists(outfile) :
os.remove(outfile)
lwpla = AIPSTask('LWPLA')
lwpla.indata = indata
lwpla.plver = 1
lwpla.inver = plver
lwpla.outfile = outfile
lwpla.msgkill = -10
lwpla.go()
# Remove PL tables
indata.zap_table('PL', -1)
示例4: __init__
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import inver [as 别名]
#.........这里部分代码省略.........
snVers = 0
clVers = 0
for i in uvdata.tables:
if i[1] == 'AIPS SN' and i[0] > snVers:
snVers = i[0]
if i[1] == 'AIPS CL' and i[0] > clVers:
clVers = i[0]
print("Deleting tables.")
uvdata.zap_table('SN', -1)
for k in range(clVers,1,-1):
uvdata.zap_table('CL', k)
snVers = 0
clVers = 1
if imageClean.exists():
imageClean.clrstat()
imageClean.zap()
if imageDirty.exists():
imageDirty.clrstat()
imageDirty.zap()
if flag.exists():
flag.clrstat()
flag.zap()
fitldFL = AIPSTask("FITLD")
fitldFL.datain = args["flagPath"]
fitldFL.outname = self.args["name"]
fitldFL.outseq = 100
fitldFL.ncount = 1
fitldFL.go()
print("Copying flagging")
tacop = AIPSTask("TACOP")
tacop.indata = flag
tacop.invers = 3
tacop.ncount = 1
tacop.outname = self.args["name"]
tacop.outseq = self.args["inseq"]
tacop.outclass = 'UVDATA'
tacop.outdisk = 1
tacop.outver = 0
tacop.inext = 'FG'
tacop.go()
if self.args["doBP"]:
uvdata.zap_table('BP', -1) #create a new bp table for each reftelly
print("Running bandpass")
bpass = AIPSTask('BPASS')
bpass.indata = uvdata
bpass.calsour[1] = self.args["bandPassCal"]
bpass.timer = self.args["time"]
bpass.refant = self.args["refTelly"]
if self.args["excludeTelly"]:
bpass.antennas[1:] = self.args["excludedTellys"]
bpass.go()
"""
uvdata.zap_table('TY', -1)
uvdata.zap_table('GC', -1)
print("Running antab")
antab = AIPSTask('ANTAB')
antab.indata = uvdata
antab.calin = self.args["antPath"]
antab.go()
print("Running apcal")
apcal = AIPSTask('APCAL')
apcal.indata = uvdata
示例5: AIPSImage
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import inver [as 别名]
imagr.go()
imagedatacl = AIPSImage(uvname[i], "ICL001", indisk, 1)
imean = AIPSTask("IMEAN")
imean.indata = imagedatacl
imean.indisk = indisk
imean.doprint = 1
imean.outtext = "PWD:IMEAN" + uvname[i] + ".txt"
imean()
uvsub = AIPSTask("UVSUB") # Divide visibilites by clean model!
uvsub.indata = uvdata
uvsub.nmaps = 1
uvsub.in2data = imagedatacl
uvsub.inver = 1
uvsub.outdisk = indisk
uvsub.ncomp[1] = -1000000
uvsub.opcode = "DIV"
uvsub.go()
uvdata = AIPSUVData(uvname[i], "UVSUB", indisk, 1)
# wtmod = AIPSTask('WTMOD') #change weight relative to amplitude adjustments
# wtmod.indata = uvdata
# wtmod.aparm[1] = (maxamplitude(uvname[i])**2)*(10**10)
# wtmod.outdisk = indisk
# wtmod.go()
# uvdata = AIPSUVData(uvname[i],'WTMOD',2,1)
uvdata2 = WizAIPSUVData(uvname[i], "UVSUB", indisk, 1)
uvdata2.header["crval"][4] = pointcenRA