Mac上使用conda安装pulsar分析软件: tempo2, Fermi plug-in

按照fermi官方引用的参考[1],似乎为了使用tempo2,需要安装Fermi plug-in和其依赖的软件(gfortran,pgplot,cfitsio),因为我已经用homebrew安装了gfortran,所以接下来的步骤不包含gfortran的安装:

1.先创建一个名为pulsar的环境:

conda create -n pulsar

2.在这个环境里面安装tempo2,和Fermi plug-in及其依赖包:

conda install -n pulsar -c conda-forge tempo2

这时候看看conda会安装哪些包:

The following NEW packages will be INSTALLED:

  bzip2              conda-forge/osx-64::bzip2-1.0.8-h0d85af4_4 None
  c-ares             conda-forge/osx-64::c-ares-1.18.1-h0d85af4_0 None
  ca-certificates    conda-forge/osx-64::ca-certificates-2022.9.24-h033912b_0 None
  cfitsio            conda-forge/osx-64::cfitsio-4.2.0-hd56cc12_0 None
  fftw               conda-forge/osx-64::fftw-3.3.10-nompi_h4fa670e_105 None
  gsl                conda-forge/osx-64::gsl-2.7-h93259b0_0 None
  krb5               conda-forge/osx-64::krb5-1.19.3-hb98e516_0 None
  libblas            conda-forge/osx-64::libblas-3.9.0-16_osx64_openblas None
  libcblas           conda-forge/osx-64::libcblas-3.9.0-16_osx64_openblas None
  libcurl            conda-forge/osx-64::libcurl-7.86.0-h581aaea_1 None
  libcxx             conda-forge/osx-64::libcxx-14.0.6-hccf4f1f_0 None
  libedit            conda-forge/osx-64::libedit-3.1.20191231-h0678c8f_2 None
  libev              conda-forge/osx-64::libev-4.33-haf1e3a3_1 None
  libgfortran        conda-forge/osx-64::libgfortran-5.0.0-9_5_0_h97931a8_26 None
  libgfortran5       conda-forge/osx-64::libgfortran5-11.3.0-h082f757_26 None
  liblapack          conda-forge/osx-64::liblapack-3.9.0-16_osx64_openblas None
  libnghttp2         conda-forge/osx-64::libnghttp2-1.47.0-h5aae05b_1 None
  libopenblas        conda-forge/osx-64::libopenblas-0.3.21-openmp_h429af6e_3 None
  libpng             conda-forge/osx-64::libpng-1.6.39-ha978bb4_0 None
  libssh2            conda-forge/osx-64::libssh2-1.10.0-h47af595_3 None
  libxcb             conda-forge/osx-64::libxcb-1.13-h0d85af4_1004 None
  libzlib            conda-forge/osx-64::libzlib-1.2.13-hfd90126_4 None
  llvm-openmp        conda-forge/osx-64::llvm-openmp-15.0.5-h61d9ccf_0 None
  ncurses            conda-forge/osx-64::ncurses-6.3-h96cf925_1 None
  openssl            conda-forge/osx-64::openssl-3.0.7-hfd90126_0 None
  pgplot             conda-forge/osx-64::pgplot-5.2.2-h375df2d_1008 None
  pthread-stubs      conda-forge/osx-64::pthread-stubs-0.4-hc929b4f_1001 None
  tempo2             conda-forge/osx-64::tempo2-2022.05.1-h3d28dfa_2 None
  xorg-kbproto       conda-forge/osx-64::xorg-kbproto-1.0.7-h35c211d_1002 None
  xorg-libx11        conda-forge/osx-64::xorg-libx11-1.7.2-h0d85af4_0 None
  xorg-libxau        conda-forge/osx-64::xorg-libxau-1.0.9-h35c211d_0 None
  xorg-libxdmcp      conda-forge/osx-64::xorg-libxdmcp-1.1.3-h35c211d_0 None
  xorg-xproto        conda-forge/osx-64::xorg-xproto-7.0.31-h35c211d_1007 None
  zlib               conda-forge/osx-64::zlib-1.2.13-hfd90126_4 None

可以看到,pgplot,cfitsio已经包含在里面了,无需另外再下载。

3.等conda下载好后,使用下面命令测试一下:tempo2 -gr fermi -h

输出:

This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under conditions of GPL license.

Looking for /Users/cuiydai/miniconda3/envs/pulsar/share/tempo2/plugins//fermi_darwin20_plug.t2

------------------------------------------
Output interface:    fermi
Author:              Lucas Guillemot
Updated:             6 April 2020
Version:             6.3
------------------------------------------


 TEMPO2 fermi plugin
======================

 USAGE: 
	 tempo2 -gr fermi -ft1 FT1.fits -ft2 FT2.fits -f par.par

 Command line options:
	 -grdev XXX/YYY, where XXX/YYY is the graphical device of your choice (e.g. a.ps/cps). Default mode is XW
	 -graph 0: no output graph is drawn
	 -bins N: number of bins of the phase histogram
	 -Hbins N: number of time bins for the H-test vs time plot
	 -output XXX: writes event times and phases in file XXX
	 -pos XXX: puts the satellite (X,Y,Z) positions as a function of time in file XXX
	 -profile XXX: stores the binned light curve in file XXX (plotting mode only)
	 -phase: stores phases in the FT1 by the ones calculated by TEMPO2
	 -ophase: will calculate orbital phases instead of pulse phases. Changes default column name to ORBITAL_PHASE.
	 -cacheft2: will read the FT2 file once, and store spacecraft positions and times into memory. Can speed up the process substantially.
	 -col XXX: phases will be stored in column XXX. Default is PULSE_PHASE
	 -tmin XXX: event times smaller than MJD XXX will be skipped.
	 -tmax XXX: event times larger than MJD XXX will be skipped.
	 -bary: write out barycenter arrival times.
	 -barycol XXX: bats will be stored in column XXX. Default is BARY_TIME.
	 -h: this help.
==============================================================================================

参考:

[1]https://fermi.gsfc.nasa.gov/ssc/data/analysis/user/Fermi_plug_doc.pdf

[2]Pulsar Software Install 脉冲星软件安装_Persus的博客-CSDN博客_presto脉冲星

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值