本文整理汇总了Python中AIPSTask.AIPSTask.imsize[1:]方法的典型用法代码示例。如果您正苦于以下问题:Python AIPSTask.imsize[1:]方法的具体用法?Python AIPSTask.imsize[1:]怎么用?Python AIPSTask.imsize[1:]使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AIPSTask.AIPSTask
的用法示例。
在下文中一共展示了AIPSTask.imsize[1:]方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: runimagr
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import imsize[1:] [as 别名]
def runimagr(indata, sources, docalib, gainuse, flagver, doband, bpver, bchan, echan, nchav, chinc, cellsiz, imsiz, niter, dotv, outdisk):
imagr = AIPSTask('IMAGR')
imagr.indata = indata
imagr.sources[1:] = sources
source = str(sources[0])
if len(source)>12 :
source = source[0:12]
imagr.outname = source
imagr.outdisk = outdisk
imagr.docalib = docalib
imagr.gainuse = gainuse
imagr.flagver = flagver
imagr.doband = doband
imagr.bpver = bpver
imagr.bchan = bchan
imagr.echan = echan
imagr.nchav = nchav
imagr.chinc = chinc
imagr.cellsize[1:] = cellsiz
imagr.imsize[1:] = imsiz
imagr.niter = niter
imagr.dotv = dotv
imagr.inp()
imagr.go()
示例2: AIPSImage
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import imsize[1:] [as 别名]
from AIPS import AIPS
from AIPSTask import AIPSTask
from AIPSData import AIPSImage
AIPS.userno = 1999
image = AIPSImage('MANDELBROT', 'MANDL', 1, 1)
if image.exists():
image.zap()
mandl = AIPSTask('mandl')
mandl.outdata = image
mandl.imsize[1:] = [ 512, 512 ]
mandl.go()
try:
header = image.header
print 'Dimension: %dx%d' % (header.naxis[0], header.naxis[1])
print image.tables
finally:
image.zap()
示例3: range
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import imsize[1:] [as 别名]
fitld.go()
if file.endswith(fileend):
uvname.append(uvdataname[0:8])
# makes a list of file prefixes to be used in multi self cal, all data is loaded.
for i in range(len(uvname)):
uvdata = AIPSUVData(uvname[i], "SPLAT", indisk, 1) # name the uv file in AIPS
imagedata = AIPSImage(uvname[i], "IIM001", indisk, 1)
nchan = uvdata.header.naxis[2]
imagr = AIPSTask("IMAGR")
imagr.nchav = nchan # use imagr to get a clean model!
imagr.indata = uvdata
imagr.outname = uvdata.name
imagr.cellsize[1:] = findmaxb(uvdata)
imagr.imsize[1:] = imsize
imagr.nboxes = 1
imagr.nfield = 1
imagr.outdisk = indisk
imagr.uvwtfn = ""
imagr.niter = niter
imagr.go()
imagedatacl = AIPSImage(uvname[i], "ICL001", indisk, 1)
imean = AIPSTask("IMEAN")
imean.indata = imagedatacl
imean.indisk = indisk
imean.doprint = 1
imean.outtext = "PWD:IMEAN" + uvname[i] + ".txt"
imean()
示例4: AIPSImage
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import imsize[1:] [as 别名]
from AIPS import AIPS
from AIPSTask import AIPSTask
from AIPSData import AIPSImage
AIPS.userno = 1999
image = AIPSImage('MANDELBROT', 'MANDL', 1, 1)
if image.exists():
image.zap()
mandl = AIPSTask('mandl')
mandl.outdata = image
mandl.imsize[1:] = [ 64, 64 ]
mandl.go()
try:
jmfit = AIPSTask('jmfit')
jmfit.indata = image
jmfit.ngauss = 4
jmfit.domax[1:] = [1, 0, 0, 0]
jmfit.go()
print 'Peak values:', jmfit.fmax[1:]
for fmax in jmfit.fmax[1:]:
assert(fmax)
finally:
image.zap()