本文整理汇总了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
示例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
示例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