本文整理汇总了Python中AIPSTask.AIPSTask.solint方法的典型用法代码示例。如果您正苦于以下问题:Python AIPSTask.solint方法的具体用法?Python AIPSTask.solint怎么用?Python AIPSTask.solint使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AIPSTask.AIPSTask
的用法示例。
在下文中一共展示了AIPSTask.solint方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: runsplat
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import solint [as 别名]
def runsplat(uvdata, outchan, tint, sbandl, sbandu, smootha, smoothb, smoothc, indisk):
splat = AIPSTask('SPLAT')
splat.indata = uvdata
splat.outname = uvdata.name
splat.outdisk = indisk
splat.outclass = 'SPLAT'
splat.outseq = uvdata.seq
splat.solint = 0
if outchan != -1 :
aparm1 = 3
splat.channel = uvdata.header['naxis'][2] / outchan
splat.chinc = uvdata.header['naxis'][2] / outchan
if tint != -1 :
splat.solint = tint / 60
splat.bif = sbandl # SBLANL -- Lower sub-band for extraction
splat.eif = sbandu # SBANDU - Upper sub-band for extraction
splat.douvcomp = -1
splat.aparm[1] = 3
splat.aparm[2] = 1
# Smoothing options!?!?
splat.smooth[1] = smootha # 1 = hanning default
splat.smooth[2] = smoothb # 4 = hanning default
splat.smooth[3] = smoothc # 1 = hanning default
splat.flagver = 0
splat.go()
示例2: runselfcalib
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import solint [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()
示例3: runquickpossm
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import solint [as 别名]
def runquickpossm(indata, source):
possm = AIPSTask('POSSM')
possm.indata = indata
possm.source[1:] = source
possm.aparm[9] = 1
possm.nplots = 6
possm.solint = 30 # plot every 30min
possm.stokes = 'HALF'
possm.flagver = 0
possm.go()
示例4: runquickvplot
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import solint [as 别名]
def runquickvplot(uvdata):
vplot = AIPSTask('VPLOT')
vplot.indata = uvdata
vplot.bchan = 3*uvdata.header['naxis'][2] /8
vplot.bchan = 5*uvdata.header['naxis'][2] /8
vplot.solint = 0.5
vplot.crowded = 3
vplot.do3col = 1
vplot.bparm[1] = 0
vplot.bparm[2]=-2
vplot.nplot = 6
vplot.go()
示例5: pfring
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import solint [as 别名]
def pfring (aipsname,refant,antennas,source,indisk,delaywin=600,ratewin=20,\
solint=1,snr=2,logfiledir='./'):
uvdata = AIPSUVData (aipsname,'FITS',indisk,1)
fring = AIPSTask ('FRING')
fring.refant = refant
fring.indata = uvdata
fring.calsour[1:] = [source]
fring.antennas[1:] = antennas
fring.solint = solint
fring.aparm[1:] = [0,0,0,0,0,2,snr,0,0]
fring.dparm[1:] = [0,delaywin,ratewin,0,0,0,0,0,0]
fring.weightit = 1
stdout = sys.stdout; sys.stdout = open(logfiledir+aipsname+'.log','a')
fring.go()
sys.stdout.close(); sys.stdout = stdout
示例6: runbpass
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import solint [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()
示例7: runfring
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import solint [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()
示例8: runpossm
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import solint [as 别名]
def runpossm(indata, sources, timer, anten, basel, aparm, bparm, bif, eif, docalib, gainuse, flagver, stokes, doband, bpver, codetype, solint, nplots, dotv, freqid):
possm = AIPSTask('POSSM')
possm.indata = indata
possm.sources[1:] = sources
possm.timer[1:] = timer
possm.aparm[1:] = aparm[1:]
possm.aparm[9] = 1
possm.bparm[1:] = bparm[1:]
possm.antennas[1:] = anten
possm.baseline[1:] = basel
possm.bif = bif
possm.eif = eif
possm.docalib = docalib
possm.gainuse = gainuse
possm.flagver = flagver
possm.stokes = stokes
possm.doband = doband
possm.bpver = bpver
possm.codetype = codetype
possm.solint = solint
possm.nplots = nplots
possm.dotv = dotv
possm.freqid = 1
possm.go()
示例9: __init__
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import solint [as 别名]
#.........这里部分代码省略.........
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()
"""
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:
示例10: AIPSImage
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import solint [as 别名]
if i == 1:
calib.docalib = 0
if i > 1:
calib.docalib = 2
if i == 1:
calib.smodel[1:] = 1, 0, 0, 0
if i > 1:
model = AIPSImage("POINT", "ICL001", indisk, i - 1)
calib.in2data = model
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