本文整理汇总了Python中AIPSTask.AIPSTask.order方法的典型用法代码示例。如果您正苦于以下问题:Python AIPSTask.order方法的具体用法?Python AIPSTask.order怎么用?Python AIPSTask.order使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AIPSTask.AIPSTask
的用法示例。
在下文中一共展示了AIPSTask.order方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: runsousp
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import order [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
示例2: remove_continuum
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import order [as 别名]
def remove_continuum(outseq):
trans = AIPSTask("trans")
imlin = AIPSTask("imlin")
entry = cat.get_entry(1) # get SDGRD entry
img = cat.get_image(entry)
nChan = round(img.header.naxis[2])
# transpose image in order to run IMLIN
trans.indisk = DISK_ID
trans.outdisk = DISK_ID
trans.baddisk[1] = BADDISK
trans.inname = entry.name
trans.inclass = "SDGRD"
trans.inseq = outseq
trans.transc = "312"
trans.outcl = "trans"
trans.go()
# Run imlin task on trans file
# remove a spectral baseline. Output image is in Freq-RA-Dec order
# (Transcod 312)
imlin.indisk = DISK_ID
imlin.outdisk = DISK_ID
imlin.outcl = "IMLIN"
last = cat.last_entry()
imlin.inname = last.name
imlin.inclass = last.klass
imlin.inseq = last.seq
imlin.nbox = 2
# use only the end channels for the default baseline fits
imlin.box[1][1] = round(nChan * 0.04) # 4-12%
imlin.box[1][2] = round(nChan * 0.12)
imlin.box[1][3] = round(nChan * 0.81) # 82-89%
imlin.box[1][4] = round(nChan * 0.89)
imlin.order = 0 # polynomial order
print "IMLIN box", imlin.box
imlin.go()
# Run transpose again task on sdgrd file produced by IMLIN
last = cat.last_entry()
trans.inname = last.name
trans.inclass = last.klass
trans.inseq = last.seq
trans.transc = "231"
trans.outdi = DISK_ID
trans.outcl = "baseli"
trans.go()
示例3:
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import order [as 别名]
imlin.outdisk=mydisk
imlin.outcl='IMLIN'
imlin.inname=AIPSCat()[mydisk][-1].name
imlin.inclass=AIPSCat()[mydisk][-1].klass
imlin.inseq=AIPSCat()[mydisk][-1].seq
imlin.nbox=2
# use only the end channels for the default fits
imlin.box[1][1]=round(nChan*0.05)
imlin.box[1][2]=round(nChan*0.1)
imlin.box[1][3]=round(nChan*0.95)
imlin.box[1][4]=round(nChan*0.99)
#sometimes there is curvature in the baseline and another box is needed
imlin.box[2][1]=round(nChan*0.6)
imlin.box[2][2]=round(nChan*0.65)
imlin.nbox=3
imlin.order=2
print imlin.box
imlin.go()
#Run trans task on sdgrd file
trans.inname=AIPSCat()[mydisk][-1].name
trans.inclass=AIPSCat()[mydisk][-1].klass
trans.inseq=AIPSCat()[mydisk][-1].seq
trans.transc= '231'
trans.outdi=mydisk
trans.outcl='baseli'
trans.go()
## and write the last thing now in the catalog to disk
fittp.indisk=mydisk
示例4:
# 需要导入模块: from AIPSTask import AIPSTask [as 别名]
# 或者: from AIPSTask.AIPSTask import order [as 别名]
imlin.outdisk=mydisk
imlin.outcl='IMLIN'
imlin.inname=AIPSCat()[mydisk][-1].name
imlin.inclass=AIPSCat()[mydisk][-1].klass
imlin.inseq=AIPSCat()[mydisk][-1].seq
imlin.nbox=2
# use only the end channels for the default baseline fits
imlin.box[1][1]=round(nChan*0.04)
imlin.box[1][2]=round(nChan*0.12)
imlin.box[1][3]=round(nChan*0.81)
imlin.box[1][4]=round(nChan*0.89)
#sometimes there is curvature in the baseline and another box is needed
imlin.box[2][1]=round(nChan*0.6)
imlin.box[2][2]=round(nChan*0.65)
imlin.nbox=3
imlin.order=2 # beware using imlin.order=1; use imlin.order=0
print imlin.box
imlin.go()
#Run trans task on sdgrd file
trans.inname=AIPSCat()[mydisk][-1].name
trans.inclass=AIPSCat()[mydisk][-1].klass
trans.inseq=AIPSCat()[mydisk][-1].seq
trans.transc= '231'
trans.outdi=mydisk
trans.outcl='baseli'
trans.go()
## and write the last thing now in the catalog to disk
fittp.indisk=mydisk