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


Python AIPSTask.imsize[1:]方法代码示例

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

示例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()
开发者ID:kernsuite-debian,项目名称:parseltongue,代码行数:23,代码来源:mandl.py

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

示例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()
开发者ID:kernsuite-debian,项目名称:parseltongue,代码行数:28,代码来源:jmfit.py


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