脉冲星分布模拟软件PsrPopPy的安装

这篇博客介绍了在CentOS 7系统中安装PsrPopPy,一个脉冲星分布模拟软件。遵循手动及官方指南,包括从GitHub下载源码,检查Matplotlib、Python、numpy和scipy等依赖库,用gfortran编译并修改makefile.linux,最后通过运行测试脚本来验证安装成功。

此份安装说明参照manual.pdf及官方说明进行
系统版本:CentOS 7
GitHub地址:https://github.com/samb8s/PsrPopPy
官方说明地址:http://samb8s.github.io/PsrPopPy/
1. 下载源码包
git clone https://github.com/samb8s/PsrPopPy.git
2. 确定自己是否安装了依赖库等
需要Matplotlib,Python,numpy以及scrip
sudo yum install numpy scipy python-matplotlib ipython python-pandas sympy python-nose atlas-devel
3. 编译安装
cd /lib/fortran
确定自己的gfortran地址与makefile.linux中的一致,若不一致则修改
tcsh make_linux.csh
vi makefile
将第一行的include makefile.$(OSTYPE) 修改为include makefile.linux
make
然后看见一串输出,但是没有报错就应该是安装完成了。
4. 测试
cd /lib/python
python populate.py -n 1038 -surveys PMSURV
会输出

[m@localhost python]$ python populate.py -n 1038 -surveys PMSURV
    Generating pulsars with parameters:
        ngen: 1038
        surveyList: ['PMSURV']
        pDistType: lnorm
        radialDistType: lfl06
        radialDistPars: 7.5
        electronModel: ne2001
        pDistPars: [2.7, -0.34]
        siDistPars: [-1.6, 0.35]
        lumDistType: lnorm
        lumDistPars: [-1.1, 0.9]
        zscaleType: exp
        zscale: 0.33
        duty_percent: 6
        scindex: -3.86
        gpsArgs: [None, None]
        doubleSpec: [None, None]
        nostdout: False
        pattern: gaussian
        orbits: False

[ ############################################################### ] 100% 

  Total pulsars = 116383
  Total detected = 1038

  Results for survey 'PMSURV'
    Number detected = 1038
    Number too faint = 65362
    Number smeared = 28480
    Number outside survey area = 21503
[m@localhost python]$ 

看见这个就是安装完成了。

评论 12
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值