zgyin的个人博客分享 http://blog.sciencenet.cn/u/zgyin

博文

PyWIP使用方法的探索

已有 3226 次阅读 2013-1-21 07:09 |个人分类:pywip的用法|系统分类:科研笔记| PyWIP使用方法的探索

PyWIP是个画图软件http://www.astro.umd.edu/~chapman/personal.html 提供了下载地址和简短的介绍
从下载下来的软件包 中的使用手册得知在使用PyWIP之前先要安装 python和WIP
python的安装方法
先要下载python http://www.python.org/ftp/python/2.4.4/
我在fedora系统下下载的是Python-2.4.4.tgz
参考下载下来的软件包执行以下步骤
./configure
    make
    make test
make install
在终端输入python显示以下内容说明python已经安装成功啦

[root@localhost ~]# python
Python 2.4.4 (#1, Jan 22 2013, 01:39:36)
[GCC 4.6.3 20120306 (Red Hat 4.6.3-2)] on linux3
Type "help", "copyright", "credits" or "license" for more information.
>>>

接下来是WIP的安装
wip是软件包miriad的一部分
miriad的安装
参考http://www.astro.umd.edu/~teuben/miriad/install.html
step1 curl ftp://ftp.astro.umd.edu/progs/bima/miriad.tar.gz | tar zxf -
step2
使用的时候执行
source /root/miriad/miriad_start.sh
如果出现下面的命令提示说明已经安装成功啦
[root@localhost ~]# source /root/miriad/miriad_start.sh
[root@localhost ~]# miriad
Miriad shell (version 3.1 [14-feb-00])
*** Experimental GNU READLINE installed. ***
A command history file is maintained in $MIRDEF/.miriadhis.
Miriad%

PyWIP的使用方法
首先要把PyWIP所在的路径给出来
export PYTHONPATH=/root/miriad/borrow/wip/pyWip
如果能看到以下内容说明pyWip可以用啦
[root@localhost ~]# export PYTHONPATH=/root/miriad/borrow/wip/pyWip
[root@localhost ~]# python
Python 2.4.4 (#1, Jan 22 2013, 01:39:36)
[GCC 4.6.3 20120306 (Red Hat 4.6.3-2)] on linux3
Type "help", "copyright", "credits" or "license" for more information.
>>> import pywip
>>>







https://wap.sciencenet.cn/blog-783377-655063.html

上一篇:idl 数据按照升序排列
下一篇:pywip的使用方法
收藏 IP: 202.101.72.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-4-26 07:18

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部