本文整理汇总了Python中AIPSTask.AIPSTask.indata方法的典型用法代码示例。如果您正苦于以下问题:Python AIPSTask.indata方法的具体用法?Python AIPSTask.indata怎么用?Python AIPSTask.indata使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AIPSTask.AIPSTask
的用法示例。
在下文中一共展示了AIPSTask.indata方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: runkntr
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import indata [as 别名]
def runkntr(image, factor, userno):
imean = AIPSTask('IMEAN')
imean.userid = userno
imean.indata = image
imean()
kntr = AIPSTask('KNTR')
kntr.dogrey = -1
kntr.dovect = -1
kntr.docont = 1
kntr.indata = image
kntr.blc[1:] = 0,0
kntr.trc[1:] = 0,0
# kntr.clev = 3*imean.pixstd
# kntr.levs[1:] = -1,1,2,4,6,8,16,32,64,128
kntr.cbpl = 16
kntr.dotv = -1
kntr.plev = 1
rms = imean.pixstd
peak = image.header.datamax
# Set the kntr levels based on dynamic range
firstlev = factor*abs(rms/peak)*300.
kntr.levs[1] = firstlev * (-1.)
kntr.levs[2] = firstlev
i = 3
while (kntr.levs[i-1]*2. < 100. and i<=30):
kntr.levs[i] = 2 * kntr.levs[i - 1]
i += 1
kntr.go()
示例2: runsplat
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import indata [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()
示例3: runselfcalib
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import indata [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()
示例4: runmsort
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import indata [as 别名]
def runmsort(indata):
print 'Running MSORT.'
msort = AIPSTask('MSORT')
msort.indata = indata
msort.outdata = indata
msort.sort = 'TB'
msort.go()
示例5: runvplot
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import indata [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()
示例6: runsousp
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import indata [as 别名]
def runsousp(indata, sources):
sousp = AIPSTask('SOUSP')
sousp.indata = indata
sousp.sources[1:] = sources
sousp.order = 1
sousp.dotv = -1
sousp.go()
return sousp.specindx
示例7: pclcal
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import indata [as 别名]
def pclcal (aipsname,indisk,inver,logfiledir='./'):
uvdata = AIPSUVData (aipsname,'FITS',indisk,1)
clcal = AIPSTask ('clcal')
clcal.indata = uvdata
clcal.inver = inver
clcal.snver = inver
stdout = sys.stdout; sys.stdout = open(logfiledir+aipsname+'.log','a')
clcal.go()
sys.stdout.close(); sys.stdout = stdout
示例8: rungetjy
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import indata [as 别名]
def rungetjy(indata, sources, calsour, bif, eif, snver):
getjy = AIPSTask('GETJY')
getjy.indata = indata
getjy.sources[1:] = sources
getjy.calsour[1:] = calsour
getjy.bif = bif
getjy.eif = eif
getjy.snver = snver
getjy.go()
示例9: runuvfix
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import indata [as 别名]
def runuvfix(datafile, inname, indisk, thisdir):
uvfix = AIPSTask('UVFIX')
klass = datafile.klass
uvfix.indata = datafile
uvfix.outdata = AIPSUVData(datafile.name,'UVFIX',indisk,thisdir)
uvfix.go()
datafile.zap()
datafile = AIPSUVData(inname,'UVFIX',indisk,thisdir)
datafile.rename(inname, klass, thisdir)
示例10: runsetjy
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import indata [as 别名]
def runsetjy(indata, sources, bif, eif, zerosp, optype):
setjy = AIPSTask('SETJY')
setjy.indata = indata
setjy.sources[1:] = sources
setjy.bif = bif
setjy.eif = eif
setjy.zerosp[1:] = zerosp, 0, 0, 0
setjy.optype = optype
setjy.go()
示例11: runuvsrt
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import indata [as 别名]
def runuvsrt(datafile, inname, indisk, thisdir):
uvsrt = AIPSTask('UVSRT')
klass = datafile.klass
uvsrt.indata = datafile
uvsrt.outdata = AIPSUVData(datafile.name,'UVSRT',indisk,datafile.seq)
uvsrt.sort = 'TB'
uvsrt.go()
datafile.zap()
datafile = AIPSUVData(inname,'UVSRT',indisk,thisdir)
datafile.rename(inname,klass,thisdir)
示例12: runfittp
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import indata [as 别名]
def runfittp(uvdata, fittpdir, fittpfile):
fittp = AIPSTask('FITTP')
fittp.indata = uvdata
fittp.doall = -1
fittp.intype = ''
fittp.outtape = 1
srcname = re.sub(r"\s+", '-', fittpfile)
fittp.dataout = os.path.join(fittpdir, srcname)
print "Saving to disk: ", uvdata.name, uvdata.klass, uvdata.seq
fittp.go()
示例13: runquickpossm
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import indata [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()
示例14: runsnplt
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import indata [as 别名]
def runsnplt(indata, inext, invers, sources, nplots, optype, dotv):
snplt = AIPSTask('SNPLT')
snplt.indata = indata
snplt.inext= inext
snplt.invers = invers
snplt.sources[1:] = sources
snplt.nplots = nplots
snplt.optype = optype
snplt.dotv = dotv
snplt.go()
示例15: psplit
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import indata [as 别名]
def psplit (aipsname,source,indisk,logfiledir='./'):
uvdata = AIPSUVData (aipsname,'FITS',indisk,1)
split = AIPSTask ('split')
split.indata = uvdata
split.outclass = 'SPLIT'
split.docalib = 1
stdout = sys.stdout; sys.stdout = open(logfiledir+aipsname+'.log','a')
split.go()
sys.stdout.close(); sys.stdout = stdout
uvdata = AIPSUVData(source,'SPLIT',indisk,1)
uvdata.rename(aipsname,'SPLIT',1)