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


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

本文整理汇总了Python中AIPSTask.AIPSTask.cellsize[1]方法的典型用法代码示例。如果您正苦于以下问题:Python AIPSTask.cellsize[1]方法的具体用法?Python AIPSTask.cellsize[1]怎么用?Python AIPSTask.cellsize[1]使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AIPSTask.AIPSTask的用法示例。


在下文中一共展示了AIPSTask.cellsize[1]方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1:

# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import cellsize[1] [as 别名]
sdgrd.aparm[4]=math.floor(decDeg)
sdgrd.aparm[5]=math.floor((decDeg-sdgrd.aparm[4])*60.)
sdgrd.aparm[6]=round((((decDeg-sdgrd.aparm[4])*60.)-sdgrd.aparm[5])*60.)
#now deal with degrees and/or minutes == 0
if decSign < 0.:
    sdgrd.aparm[4] = -1. * sdgrd.aparm[4]
    if sdgrd.aparm[4] == 0:
        sdgrd.aparm[5] = -1. * sdgrd.aparm[5]
        if sdgrd.aparm[5] == 0:
            sdgrd.aparm[6] = -1.* sdgrd.aparm[6]
print raDeg, decDeg, '->',sdgrd.aparm
#sdgrd.aparm[4]=decDeg
#custom edited for Sgr B2 obs
#if  cellsize < 2:
#cellsize = 6
sdgrd.cellsize[1] = cellsize
sdgrd.cellsize[2] = cellsize
sdgrd.xparm[1] = 8*cellsize
sdgrd.xparm[2] = 2.5*cellsize
sdgrd.xparm[3] = 2
if imxSize < 10:
    imxSize = 150
if imySize < 10:
    imySize = 150
sdgrd.imsize[1] = imxSize
sdgrd.imsize[2] = imySize
## The above lines set the default image parameters
## Below override imaging parameters to make uniform images
# RA
sdgrd.aparm[1] = 19
sdgrd.aparm[2] = 23
开发者ID:jfoster17,项目名称:gbt-pipeline,代码行数:33,代码来源:imageW51.py

示例2: AIPSImage

# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import cellsize[1] [as 别名]
if bChan > nChan:
    bChan = 1
if eChan > nChan:
    eChan = nChan
if eChan < 1:
    eChan = nChan
#Run momnt task
momnt.indisk=mydisk
momnt.outdisk=mydisk
momnt.inname=AIPSCat()[mydisk][-1].name
momnt.inclass='IMLIN'
momnt.inseq=1
momnt.icut=-10000.
momnt.flux=-.00001
momnt.outclass='0'
momnt.cellsize[1] = 0
momnt.cellsize[2] = 0
momnt.blc[1]=bChan
momnt.blc[2]=0
momnt.blc[3]=0
momnt.trc[1]=eChan
momnt.trc[2]=0
momnt.trc[3]=0
momnt.go()

# prepare to zap after the copy
image = AIPSImage( AIPSCat()[mydisk][-1].name, \
                   AIPSCat()[mydisk][-1].klass, mydisk, \
                   AIPSCat()[mydisk][-1].seq)

## Use the subim task to rename the output image
开发者ID:jfoster17,项目名称:gbt-pipeline,代码行数:33,代码来源:sumLine.py

示例3:

# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import cellsize[1] [as 别名]
sdgrd.aparm[4]=math.floor(decDeg)
sdgrd.aparm[5]=math.floor((decDeg-sdgrd.aparm[4])*60.)
sdgrd.aparm[6]=round((((decDeg-sdgrd.aparm[4])*60.)-sdgrd.aparm[5])*60.)
#now deal with degrees and/or minutes == 0
if decSign < 0.:
    sdgrd.aparm[4] = -1. * sdgrd.aparm[4]
    if sdgrd.aparm[4] == 0:
        sdgrd.aparm[5] = -1. * sdgrd.aparm[5]
        if sdgrd.aparm[5] == 0:
            sdgrd.aparm[6] = -1.* sdgrd.aparm[6]
print raDeg, decDeg, '->',sdgrd.aparm
#sdgrd.aparm[4]=decDeg
#custom edited for Sgr B2 obs
#if  cellsize < 2:
#cellsize = 6
sdgrd.cellsize[1] = cellsize
sdgrd.cellsize[2] = cellsize
sdgrd.xparm[1] = 8*cellsize
sdgrd.xparm[2] = 2*cellsize
sdgrd.xparm[3] = 2
if imxSize < 10:
    imxSize = 150
if imySize < 10:
    imySize = 150
sdgrd.imsize[1] = imxSize
sdgrd.imsize[2] = imySize
## The above lines set the default image parameters
## Below override imaging parameters to make uniform images
# RA
sdgrd.aparm[1] = 19
sdgrd.aparm[2] = 23
开发者ID:jfoster17,项目名称:gbt-pipeline,代码行数:33,代码来源:imNH3-11.py


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