本文整理汇总了Python中AIPSTask.AIPSTask.inext方法的典型用法代码示例。如果您正苦于以下问题:Python AIPSTask.inext方法的具体用法?Python AIPSTask.inext怎么用?Python AIPSTask.inext使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AIPSTask.AIPSTask
的用法示例。
在下文中一共展示了AIPSTask.inext方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: MergeCal
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import inext [as 别名]
def MergeCal(inUV, err, \
GCver=1, TYver=1, PCver=1, outVer=0, timeTol=1.0):
""" Fix up VLBA screwed up calibration
Merges redundant entries in VLBA GC, TY and PC tables
Translated from the AIPSish MERGECAL (requires AIPS task TAMRG)
inUV = UV data object to fix, MUST be in AIPS format
err = Python Obit Error/message stack
GCver = Version number of GC table to be fixed.
TYver = Version number of TY table to be fixed.
PCver = Version number of PC table to be fixed.
outVer = Version number of output tables
(same for all three table types).
timeTol = Tolerance for time comparisons in seconds.
Records will not be merged if their times differ
by more than this amount.
"""
################################################################
if inUV.FileType!='AIPS':
raise RuntimeError,"Can ONLY handle AIPS data"
# Set up
tamrg = AIPSTask("tamrg")
tamrg.inname = inUV.Aname
tamrg.inclass = inUV.Aclass
tamrg.indisk = inUV.Disk
tamrg.inseq = inUV.Aseq
# GC table
tamrg.inext = "GC"
tamrg.invers = GCver
tamrg.outvers = outVer
tamrg.aparm[1:] = [1.,1.,2.,1.,3.,1.,0.,0.,0.,0.]
tamrg.bparm[1:] = [1.,2.,3.,0.,0.,0.,0.,0.,0.,0.]
tamrg.cparm[1:] = [0.,0.,0.,0.,0.,0.,0.,0.,0.,0.]
tamrg.dparm[1:] = [0.,0.,0.,0.,0.,0.,0.,0.,0.,0.]
tamrg.g
# TY table
tamrg.inext = "TY"
tamrg.invers = TYver
tamrg.outvers = outVer
tamrg.aparm[1:] = [1.,1.,4.,1.,5.,1.,6.,1.,0.,0.]
tamrg.bparm[1:] = [1.,3.,4.,5.,6.,0.,0.,0.,0.,0.]
tamrg.cparm[1:] = [timeTol/(24.*60.*60.),0.,0.,0.,0.,0.,0.,0.,0.,0.]
tamrg.dparm[1:] = [0.,0.,0.,0.,0.,0.,0.,0.,0.,0.]
tamrg.g
# PC table
tamrg.inext = "PC"
tamrg.invers = PCver
tamrg.outvers = outVer
tamrg.aparm[1:] = [1.,1.,4.,1.,5.,1.,6.,1.,0.,0.]
tamrg.bparm[1:] = [1.,3.,4.,5.,6.,0.,0.,0.,0.,0.]
tamrg.cparm[1:] = [timeTol/(24.*60.*60.),0.,0.,0.,0.,0.,0.,0.,0.,0.]
tamrg.dparm[1:] = [0.,0.,0.,0.,0.,0.,0.,0.,0.,0.]
tamrg.g
示例2: runsnplt
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import inext [as 别名]
def runsnplt(indata, inext, invers, sources, nplots, optype, dotv):
snplt = AIPSTask('SNPLT')
snplt.indata = indata
snplt.inext= inext
snplt.invers = invers
snplt.sources[1:] = sources
snplt.nplots = nplots
snplt.optype = optype
snplt.dotv = dotv
snplt.go()
示例3: __init__
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import inext [as 别名]
#.........这里部分代码省略.........
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
apcal.timer = self.args["time"]
apcal.tyver = 1
apcal.gcver = 1
apcal.go()
snVers = snVers + 1
print("apcal made snVers {0}".format(snVers))
示例4: AIPSTask
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import inext [as 别名]
indxr.go()
multi = AIPSTask("MULTI")
multi.indata = uvdata
multi.outdisk = indisk
multi.outname = "POINT"
multi.outclass = "UVDATA"
multi.go()
uvdata = AIPSUVData("POINT", "UVDATA", indisk, 1)
tabed = AIPSTask("TABED")
tabed.indata = uvdata
tabed.indisk = indisk
tabed.outdisk = indisk
tabed.inext = "SU"
tabed.optype = "REPL"
tabed.aparm[1:] = 2, 0, 0, 3, 0
tabed.keystrng = "POINT"
tabed.go()
if doscal == 1:
uvdata = AIPSUVData("POINT", "UVDATA", indisk, 1)
calib = AIPSTask("CALIB")
clcal = AIPSTask("CLCAL")
snplt = AIPSTask("SNPLT")
for i in range(1, itercal + 1):
if i > 1:
nchan = uvdata.header.naxis[2]
imagr = AIPSTask("IMAGR")
示例5: AIPSTask
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import inext [as 别名]
indxr.go()
multi = AIPSTask('MULTI')
multi.indata = uvdata
multi.outdisk = 2
multi.outname = 'POINT'
multi.outclass = 'UVDATA'
multi.go()
uvdata = AIPSUVData('POINT','UVDATA',2,1)
tabed = AIPSTask('TABED')
tabed.indata = uvdata
tabed.indisk=2
tabed.outdisk=2
tabed.inext = 'SU'
tabed.optype = 'REPL'
tabed.aparm[1:] = 2, 0, 0, 3, 0
tabed.keystrng = 'POINT'
tabed.go()
if doscal == 1:
uvdata = AIPSUVData('POINT','UVDATA',2,1)
calib = AIPSTask('CALIB')
clcal = AIPSTask('CLCAL')
snplt = AIPSTask('SNPLT')
for i in range(1,itercal+1):
if i >1:
nchan = uvdata.header.naxis[2]
imagr = AIPSTask('IMAGR')
示例6: assert
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import inext [as 别名]
assert(not uvdata.exists())
fitld = AIPSTask('fitld')
fitld.datain = file
fitld.outdata = uvdata
fitld.msgkill = 2
fitld.go()
assert(uvdata.exists())
try:
tacop = AIPSTask('tacop')
tacop.indata = uvdata
tacop.outdata = uvdata
tacop.inext = 'CL'
tacop.invers = 1
tacop.outvers = 3
tacop()
assert([3, 'AIPS CL'] in uvdata.tables)
uvdata.zap_table('CL', 1)
assert([3, 'AIPS CL'] in uvdata.tables)
assert([1, 'AIPS CL'] not in uvdata.tables)
tacop = AIPSTask('tacop')
tacop.indata = uvdata
tacop.outdata = uvdata
tacop.inext = 'CL'