本文整理汇总了Python中AIPSTask.AIPSTask.soltype方法的典型用法代码示例。如果您正苦于以下问题:Python AIPSTask.soltype方法的具体用法?Python AIPSTask.soltype怎么用?Python AIPSTask.soltype使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AIPSTask.AIPSTask
的用法示例。
在下文中一共展示了AIPSTask.soltype方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: runselfcalib
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import soltype [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: runbpass
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import soltype [as 别名]
def runbpass(indata, calsour, refant, bpassprm, soltyp, solint, docal, specindx):
# bpass = AIPSTask('BPASS', version='OLD')
bpass = AIPSTask('BPASS')
# bpass.version='OLD' # Only if on the JODRELL system!
# bpass.uvrange[1:] = 0,0
bpass.indata = indata
bpass.calsour[1:] = calsour
bpass.refant = refant
bpass.bpassprm[1:] = bpassprm
# bpass.bif = bif
# bpass.eif = eif
bpass.soltype = soltyp
bpass.solint = solint
bpass.docal = docal
bpass.specindx = specindx
bpass.go()
示例3: __init__
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import soltype [as 别名]
#.........这里部分代码省略.........
clcal.timer = self.args["time"]
clcal.interpol = "ambg"
clcal.opcode = "calp"
clcal.refant = self.args["refTelly"]
clcal.go()
"""
clcal.snver = snVers
clcal.inver = snVers
clcal.gainver = clVers
clcal.go()
"""
CL = 0
clVers = clVers + 1
clFring = clVers
for i in uvdata.tables:
if i[1] == 'AIPS CL' and i[0]>CL:
CL = i[0]
if not CL == clVers:
sys.exit("CL table number missmatch")
print("Clcal created CL table {0}".\
format(clVers))
#determines calibration, creates new SN
print("Running calib")
calib = AIPSTask('calib')
calib.indata = uvdata
calib.calsour[1] = self.args["cal"]
calib.docalib = 1
calib.gainuse = clVers
if self.args["excludeTelly"]:
calib.antennas[1:] = self.args["excludedTellys"]
calib.smodel[1] = 1
calib.solint = 0.2
calib.soltype = 'L1'
calib.solmode = 'P'
if self.args["doBP"]:
calib.doband = 1
calib.bpver = 1
calib.timer = self.args["time"]
calib.refant = self.args["refTelly"]
calib.go()
snVers = snVers + 1
SN = 0
for i in uvdata.tables:
if i[1] == 'AIPS SN' and i[0]>SN:
SN = i[0]
if not SN == snVers:
sys.exit("SN table number missmatch")
print("Calib created SN table {0}".\
format(snVers))
#takes SN table created by calib and applies to CL
print("Running clcal")
clcal.sources[1] = self.args["cal"]
clcal.snver = snVers
clcal.inver = snVers
clcal.gainver = clVers
clcal.go() #Apply only to cal
clVers = clVers + 1
CL = 0
for i in uvdata.tables:
if i[1] == 'AIPS CL' and i[0]>CL:
CL = i[0]
if not CL == clVers:
sys.exit("CL table number missmatch")
示例4:
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import soltype [as 别名]
calib.calsour[1] = "POINT"
calib.in2disk = 2
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"
示例5:
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import soltype [as 别名]
calib.calsour[1] = 'POINT'
calib.in2disk = 2
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 = 2
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'