本文整理汇总了Python中AIPSTask.AIPSTask.snver方法的典型用法代码示例。如果您正苦于以下问题:Python AIPSTask.snver方法的具体用法?Python AIPSTask.snver怎么用?Python AIPSTask.snver使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AIPSTask.AIPSTask
的用法示例。
在下文中一共展示了AIPSTask.snver方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: runselfcalib
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import snver [as 别名]
def runselfcalib(indata, in2data, calsour, timer, uvrang, docalib, gainuse, flagver, doband, bpver, cmethod, refant, solint, aparm, doflag, soltype, solmode, minamper, minphser, cparm, snver, antwt, weightit):
# CALIB procedure for self-calibration
calib = AIPSTask('CALIB')
calib.indata = indata
calib.in2data = in2data
calib.calsour[1:] = calsour
calib.timer[1:] = timer[1:]
calib.uvrange[1:] = uvrang[1:]
calib.docalib = docalib
calib.gainuse = gainuse
calib.flagver = flagver
calib.doband = doband
calib.bpver = bpver
calib.cmethod = cmethod
calib.refant = refant
calib.solint = solint
# calib.aparm[1:] = aparm[1:]
if(solmode == 'P'):
calib.aparm[1] = 3
else:
calib.aparm[1] = 4
calib.aparm[6] = 3
calib.aparm[7] = 5
calib.cparm[1] = 10
calib.doflag = doflag
calib.soltype = soltype
calib.solmode = solmode
calib.minamper = minamper
calib.minphser = minphser
calib.cparm[1:] = cparm[1:]
calib.snver = snver
calib.antwt[1:] = antwt[1:]
calib.weightit = weightit
calib.go()
示例2: rungetjy
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import snver [as 别名]
def rungetjy(indata, sources, calsour, bif, eif, snver):
getjy = AIPSTask('GETJY')
getjy.indata = indata
getjy.sources[1:] = sources
getjy.calsour[1:] = calsour
getjy.bif = bif
getjy.eif = eif
getjy.snver = snver
getjy.go()
示例3: pclcal
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import snver [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
示例4: runclcal
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import snver [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()
示例5: runfring
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import snver [as 别名]
def runfring(indata, calsour, timer, docalib, gainuse, flagver, doband, bpver, refant, refantlist, solint, aparm, dparm, snver, snr, bchan, echan):
print 'Running FRING on ', format(calsour)
fring = AIPSTask('FRING')
fring.indata = indata
fring.calsour[1:] = calsour
fring.timer[1:] = timer
fring.docalib = docalib
fring.gainuse = gainuse
fring.flagver = flagver
fring.doband = doband
fring.bpver = bpver
fring.refant = refant
fring.search[1:] = refantlist
fring.solint = solint
fring.cmethod = 'DFT'
fring.aparm[1:] = aparm
fring.aparm[7] = snr
fring.dparm[1:] = dparm
fring.snver = snver
fring.bchan = bchan
fring.echan = echan
fring.go()
示例6: __init__
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import snver [as 别名]
#.........这里部分代码省略.........
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))
#applies new SN table to CL
print("Running clcal.")
clcal = AIPSTask('clcal')
clcal.indata = uvdata
clcal.calsour[1] = self.args["cal"]
clcal.timerang = self.args["time"]
clcal.snver = snVers
clcal.inver = snVers
clcal.gainver = clInit #apply to original cl
clcal.timer = self.args["time"]
clcal.interpol = "ambg"
clcal.opcode = "calp"
clcal.refant = self.args["refTelly"]
clcal.go()
clVers = clVers + 1
print("clcal made cl table {0}".format(clVers))
"""
print("Running Fring.")
fring = AIPSTask('fring') #finds fringes
fring.indata = uvdata
fring.docalib = 1
fring.gainuse = clVers
if self.args["excludeTelly"]:
fring.antennas[1:] = self.args["excludedTellys"]
fring.calsour[1] = self.args["cal"]
fring.bchan = self.args["bchan"]
fring.echan = self.args["echan"]
fring.timer = self.args["time"]
fring.refant = self.args["refTelly"]
if self.args["doBP"]:
fring.doband = 1
fring.bpver = 1
fring.go()
snVers = snVers + 1
SN = 0
for i in uvdata.tables:
if i[1] == 'AIPS SN' and i[0]>SN:
示例7:
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import snver [as 别名]
calib.nmaps
calib.ncomp[1] = -1000000
calib.nmaps = 1
calib.refant = refan
calib.solint = soli
if combinIFLLRR == 1:
calib.aparm[1:] = 3, 0, 0, 0, 0, 0, 0, 0
if combinIFLLRR == 2:
calib.aparm[1:] = 3, 0, 0, 0, 1, 0, 0, 0
if combinIFLLRR == 3:
calib.aparm[1:] = 3, 0, 1, 0, 0, 0, 0, 0
if combinIFLLRR == 4:
calib.aparm[1:] = 3, 0, 1, 0, 1, 0, 0, 0
calib.soltype = "L1"
calib.solmode = APhas
calib.snver = i
calib.go()
snplt.indata = uvdata
snplt.indisk = indisk
snplt.inext = "SN"
snplt.pixrange[1:] = -180, 180
snplt.invers = i
snplt.nplots = 9
snplt.optype = "PHAS"
if combinIFLLRR == 1:
snplt.opcode = ""
if combinIFLLRR == 2:
snplt.opcode = "ALIF"
if combinIFLLRR == 3:
snplt.opcode = "ALST"