此份安装说明参照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]$
看见这个就是安装完成了。
这篇博客介绍了在CentOS 7系统中安装PsrPopPy,一个脉冲星分布模拟软件。遵循手动及官方指南,包括从GitHub下载源码,检查Matplotlib、Python、numpy和scipy等依赖库,用gfortran编译并修改makefile.linux,最后通过运行测试脚本来验证安装成功。
2152

被折叠的 条评论
为什么被折叠?



