zogy.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:ZOGY 作者: pmvreeswijk 项目源码 文件源码
def ds9_arrays(**kwargs):

    cmd = ['ds9', '-zscale', '-zoom', '4', '-cmap', 'heat']
    for name, array in kwargs.items():
        # write array to fits
        fitsfile = 'ds9_'+name+'.fits'
        fits.writeto(fitsfile, np.array(array).astype(np.float32), clobber=True)            
        # append to command
        cmd.append(fitsfile)

    #print 'cmd', cmd
    result = subprocess.call(cmd)

################################################################################
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号