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


Python AIPSTask.soltype方法代码示例

本文整理汇总了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()
开发者ID:h-ramp,项目名称:pipeline,代码行数:36,代码来源:eMERLIN_tasks.py

示例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()
开发者ID:h-ramp,项目名称:pipeline,代码行数:18,代码来源:eMERLIN_tasks.py

示例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")
开发者ID:jkania7,项目名称:pride,代码行数:70,代码来源:cleaner.py

示例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"
开发者ID:jradcliffe5,项目名称:multi_self_cal,代码行数:33,代码来源:multi_source_self_cal_v1.2.py

示例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'
开发者ID:jradcliffe5,项目名称:multi_self_cal,代码行数:33,代码来源:multi_source_self_cal.py


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