当前位置: 首页>>代码示例>>Python>>正文


Python AIPSTask.interpol方法代码示例

本文整理汇总了Python中AIPSTask.AIPSTask.interpol方法的典型用法代码示例。如果您正苦于以下问题:Python AIPSTask.interpol方法的具体用法?Python AIPSTask.interpol怎么用?Python AIPSTask.interpol使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AIPSTask.AIPSTask的用法示例。


在下文中一共展示了AIPSTask.interpol方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: runclcal

# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import interpol [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()
开发者ID:h-ramp,项目名称:pipeline,代码行数:15,代码来源:eMERLIN_tasks.py

示例2: __init__

# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import interpol [as 别名]

#.........这里部分代码省略.........
            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:
                SN = i[0]
        if not SN == snVers:
            sys.exit("SN table number missmatch")
        print("Fring created SN table {0}".\
开发者ID:jkania7,项目名称:pride,代码行数:70,代码来源:cleaner.py

示例3: AIPSTask

# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import interpol [as 别名]
        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"
        if combinIFLLRR == 4:
            snplt.opcode = "ALSI"
        snplt.dotv = -1
        snplt.go()

        clcal.indata = uvdata
        clcal.interpol = "AMBG"
        clcal.snver = i
        clcal.invers = i
        clcal.gainver = i
        clcal.gainuse = i + 1
        clcal.refant = refan
        clcal.go()

    lwpla = AIPSTask("LWPLA")
    lwpla.indata = uvdata
    lwpla.indisk = indisk
    lwpla.plver = 1
    if combinIFLLRR == 1:
        lwpla.invers = int(itercal * (math.ceil((noteles * 16) / 9.0)))
    if combinIFLLRR == 2:
        lwpla.invers = int(itercal * (math.ceil((noteles * 2) / 9.0)))
开发者ID:jradcliffe5,项目名称:multi_self_cal,代码行数:33,代码来源:multi_source_self_cal_v1.2.py

示例4: AIPSTask

# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import interpol [as 别名]
		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'
		if combinIFLLRR == 4:
			snplt.opcode = 'ALSI'
		snplt.dotv = -1
		snplt.go()

		clcal.indata = uvdata
		clcal.interpol = 'AMBG'
		clcal.snver = i
		clcal.invers = i
		clcal.gainver = i
		clcal.gainuse = i+1
		clcal.refant = refan
		clcal.go()
	
	lwpla = AIPSTask('LWPLA')
	lwpla.indata = uvdata
	lwpla.indisk = 2
	lwpla.plver = 1
	if combinIFLLRR == 1:
		lwpla.invers = int(itercal*(math.ceil((noteles*16)/9.0)))
	if combinIFLLRR == 2:
		lwpla.invers = int(itercal*(math.ceil((noteles*2)/9.0)))
开发者ID:jradcliffe5,项目名称:multi_self_cal,代码行数:33,代码来源:multi_source_self_cal.py


注:本文中的AIPSTask.AIPSTask.interpol方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。