本文整理汇总了Python中AIPSTask.AIPSTask.stokes方法的典型用法代码示例。如果您正苦于以下问题:Python AIPSTask.stokes方法的具体用法?Python AIPSTask.stokes怎么用?Python AIPSTask.stokes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AIPSTask.AIPSTask
的用法示例。
在下文中一共展示了AIPSTask.stokes方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: runvplot
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import stokes [as 别名]
def runvplot(indata, sources, stokes, timer, anten, basel, bif, eif, bchan, echan, docalib, gainuse, flagver, doband, bpver, aparm, bparm, refant, dotv, nplots):
vplot = AIPSTask('VPLOT')
vplot.indata = indata
vplot.sources[1:] = sources
vplot.stokes = stokes
vplot.timerang[1:] = timer
vplot.antennas[1:] = anten
vplot.baseline[1:] = basel
vplot.bchan = bchan
vplot.echan = echan
vplot.avgchan = 1
vplot.bif = bif
vplot.eif = eif
vplot.docalib = docalib
vplot.gainuse = gainuse
vplot.flagver = flagver
vplot.doband = doband
vplot.bpver = bpver
vplot.aparm[1:] = aparm
vplot.bparm[1:] = bparm
vplot.crowded = 0
vplot.refant = refant
vplot.dotv = dotv
vplot.xinc = 1
vplot.nplots = nplots
vplot.go()
示例2: runquickpossm
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import stokes [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()
示例3: runuvplt
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import stokes [as 别名]
def runuvplt(indata, sources, stokes, timer, anten, basel, bif, eif, docalib, gainuse, flagver, doband, bpver, aparm, bparm, doweight, refant, dotv):
uvplt = AIPSTask('UVPLT')
uvplt.indata = indata
uvplt.sources = sources
uvplt.stokes = stokes
uvplt.timerang = timer
uvplt.antennas[1:] = anten
uvplt.baseline[1:] = basel
uvplt.bif = bif
uvplt.eif = eif
uvplt.docalib = docalib
uvplt.gainuse = gainuse
uvplt.flagver = flagver
uvplt.doband = doband
uvplt.bpver = bpver
uvplt.aparm[1:] = aparm[1:]
uvplt.bparm[1:] = bparm[1:]
uvplt.doweight = doweight
uvplt.refant = refant
uvplt.dotv = dotv
uvplt.go()
示例4: runuvhgm
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import stokes [as 别名]
def runuvhgm(indata, sources, anten, basel, SEFDbif, SEFDeif, SEFDbchan, SEFDechan):
uvhgm = AIPSTask('UVHGM')
uvhgm.indata = indata
uvhgm.sources[1:] = sources
uvhgm.antennas[1:] = anten
uvhgm.baseline[1:] = basel
uvhgm.bif = SEFDbif
uvhgm.eif = SEFDeif
uvhgm.flagver = 0
uvhgm.stokes ='HALF'
uvhgm.bchan = SEFDbchan
uvhgm.echan = SEFDechan
uvhgm.doall = 1
uvhgm.axtype ='H'
uvhgm.timerang[1:] = 0, 0, 0, 0, 0, 0, 0, 0
# uvhgm.timerang[1:] = 0, 0, 0, 0, 3, 0, 0, 0
# uvhgm.pixrange[1:] = -20, 20
uvhgm.dotv = -1
uvhgm.docal = 1
uvhgm.gainuse = 0
uvhgm.pixrange[1:] = -10, 10
uvhgm.doband = -1
uvhgm.nboxes = 1000
uvhgm.go()
示例5: runpossm
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import stokes [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()
示例6: float
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import stokes [as 别名]
clip.indisk = 2
# Go through baselines and clip those visibilies that
# still get through at > 4x the mean clean level
for ib in np.arange(1,nbas):
ant1 = base_ant[ib][0]
ant2 = base_ant[ib][1]
clip.antennas[1] = ant1
clip.antennas[2] = 0
clip.baseline[1] = ant2
clip.baseline[2] = 0
clip.stokes = 'RR'
clip.aparm[1] = float(lev0[ib]*4)
clip.aparm[2] = float(lev0[ib]*4)
clip.aparm[3] = 0.0
clip.aparm[4] = 0.0
clip.go()
clip.stokes = 'LL'
clip.aparm[1] = float(lev1[ib]*4)
clip.aparm[2] = float(lev1[ib]*4)
clip.aparm[3] = 0.0
clip.aparm[4] = 0.0
clip.go()
# uvdata = AIPSUVData(src,'UVCOPY',dsk,1)
示例7: AIPSTask
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import stokes [as 别名]
fitld = AIPSTask('fitld')
fitld.datain = file
fitld.outdata = uvdata
fitld.msgkill = 2
fitld.go()
assert(uvdata.exists())
try:
uvflg = AIPSTask('uvflg')
uvflg.indata = uvdata
uvflg.bchan = 1
uvflg.echan = 1
uvflg.antennas[1] = 1
uvflg.stokes = 'CROS'
uvflg.reason = 'TEST'
uvflg()
uvflg.stokes = 'RL'
uvflg()
print uvdata.tables
fqtable = uvdata.table('FQ', 0)
print fqtable[0]
fgtable = uvdata.table('FG', 0)
for row in fgtable:
print row
continue
assert (fgtable[0].pflags == [0, 0, 1, 1])
assert (fgtable[1]['pflags'] == [0, 0, 1, 0])