|||
1. 准备:
Ubuntu16.04:http://cdimage.ubuntu.com/lubuntu/releases/16.04/
FSTs v11r5p3:https://fermi.gsfc.nasa.gov/ssc/data/analysis/software/v11r5p3.html
2. 测试:(U为我的用户名)
[U@U ~]$ sudo apt-get install build-essential
[U@U ~]$ sudo apt-get update
[U@U ~]$ sudo apt-get upgrade
[U@U ~]$ cd ~/Public/ScienceTools-v11r5p3-fssc-20180124-x86_64-unknown-linux-gnu-libc2.23/x86_64-unknown-linux-gnu-libc2.23
[U@U x86_64-unknown-linux-gnu-libc2.23]$ ls
bin BUILD_DIR fermi-init.csh fermi-init.sh help include lib man refdata share syspfiles xml
[U@U x86_64-unknown-linux-gnu-libc2.23]$ export FERMI_DIR=`pwd`
[U@U x86_64-unknown-linux-gnu-libc2.23]$ source $FERMI_DIR/fermi-init.sh
[U@U x86_64-unknown-linux-gnu-libc2.23]$ gtselect
gtselect: error while loading shared libraries: libtinfo.so.6: cannot open shared object file: No such file or directory
[U@U x86_64-unknown-linux-gnu-libc2.23]$ ls /lib/x86_64-linux-gnu/libti*
/lib/x86_64-linux-gnu/libtinfo.so.5 /lib/x86_64-linux-gnu/libtinfo.so.5.9
[U@U x86_64-unknown-linux-gnu-libc2.23]$ sudo ln -s /lib/x86_64-linux-gnu/libtinfo.so.5.9 /lib/x86_64-linux-gnu/libtinfo.so.6
[U@U x86_64-unknown-linux-gnu-libc2.23]$ gtselect
gtselect: error while loading shared libraries: libncurses.so.6: cannot open shared object file: No such file or directory
[U@U x86_64-unknown-linux-gnu-libc2.23]$ ls /lib/x86_64-linux-gnu/libnc*
/lib/x86_64-linux-gnu/libncurses.so.5 /lib/x86_64-linux-gnu/libncursesw.so.5
/lib/x86_64-linux-gnu/libncurses.so.5.9 /lib/x86_64-linux-gnu/libncursesw.so.5.9
[U@U x86_64-unknown-linux-gnu-libc2.23]$ sudo ln -s /lib/x86_64-linux-gnu/libncurses.so.5.9 /lib/x86_64-linux-gnu/libncurses.so.6
[U@U x86_64-unknown-linux-gnu-libc2.23]$ geselect
Input FT1 file[] ^v^
3. 设置:
[U@U x86_64-unknown-linux-gnu-libc2.23]$ echo "export FERMI_DIR=$FERMI_DIR" >> ~/.bashrc
[U@U x86_64-unknown-linux-gnu-libc2.23]$ echo "source $FERMI_DIR/fermi-init.sh" >> ~/.bashrc
[U@U x86_64-unknown-linux-gnu-libc2.23]$ tail ~/.bashrc
4. 补充:
[U@U x86_64-unknown-linux-gnu-libc2.23]$ cd ~/Data
[U@U Data]$ ls *xml.py
make3FGLxml.py
[U@U Data]$ ./make3FGLxml.py gll_psc_v16.fit Geminga_gti.fits -o Geminga_input.xml -G gll_iem_v06.fits -g gll_iem_v06 -I iso_P8R2_SOURCE_V6_v06.txt -i iso_P8R2_SOURCE_V6_v06 -e ./Extended_archive_v15/Templates/ -s 25 -p FALSE -v TRUE -r 6 -ED -ON
Traceback (most recent call last):
from numpy.linalg import lapack_lite, _umath_linalg
ImportError: libgfortran.so.3: cannot open shared object file: No such file or directory
[U@U Data]$ ls /lib/x86_64-linux-gnu/libgf*
ls: cannot access '/lib/x86_64-linux-gnu/libgf*': No such file or directory
[U@U Data]$ sudo apt-get install libgfortran3:amd64
[U@U Data]$ ls /lib/x86_64-linux-gnu/libgf*
ls: cannot access '/lib/x86_64-linux-gnu/libgf*': No such file or directory
[U@U Data]$ ls /usr/lib/x86_64-linux-gnu/libgf*
/usr/lib/x86_64-linux-gnu/libgfortran.so.3
/usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0
[U@U Data]$ ./make3FGLxml.py gll_psc_v16.fit Geminga_gti.fits -o Geminga_input.xml -G gll_iem_v06.fits -g gll_iem_v06 -I iso_P8R2_SOURCE_V6_v06.txt -i iso_P8R2_SOURCE_V6_v06 -e ./Extended_archive_v15/Templates/ -s 25 -p FALSE -v TRUE -r 6 -ED -ON
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
Creating file and adding sources from 3FGL
Extended source IC443 in ROI, make sure ./Extended_archive_v15/Templates/IC443.fits is the correct path to the extended template.
Extended source S 147 in ROI, make sure ./Extended_archive_v15/Templates/S147.fits is the correct path to the extended template.
Added 83 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True
5. 更多:
链接1:https://github.com/matterhorn-chat/matterhorn/issues/240
链接2:http://cta.irap.omp.eu/ctools/users/tutorials/howto/fermi/howto_fermi_prepare.html
链接3:http://bzhang.lamost.org/website/archives/fermi_analysis_spectra/
链接4:https://forum.ubuntu.com.cn/viewtopic.php?t=474030
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2025-1-8 20:48
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社