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为我的用户名) $ sudo apt-get install build-essential $sudo apt-get update $sudo apt-get upgrade $ cd~/Public/ScienceTools-v11r5p3-fssc-20180124-x86_64-unknown-linux-gnu-libc2.23/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 $export FERMI_DIR=`pwd` $source $FERMI_DIR/fermi-init.sh $ gtselect gtselect: error while loading shared libraries: libtinfo.so.6: cannot open shared object file: No such file or directory $ls /lib/x86_64-linux-gnu/libti* /lib/x86_64-linux-gnu/libtinfo.so.5 /lib/x86_64-linux-gnu/libtinfo.so.5.9 $sudo ln -s /lib/x86_64-linux-gnu/libtinfo.so.5.9 /lib/x86_64-linux-gnu/libtinfo.so.6 $ gtselect gtselect: error while loading shared libraries: libncurses.so.6: cannot open shared object file: No such file or directory $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 $sudo ln -s /lib/x86_64-linux-gnu/libncurses.so.5.9 /lib/x86_64-linux-gnu/libncurses.so.6 $ geselect Input FT1 file $ echoexportFERMI_DIR=$FERMI_DIR~/.bashrc $ echosource$FERMI_DIR/fermi-init.sh~/.bashrc $ tail ~/.bashrc 4. 补充: $ cd ~/Data $ ls *xml.py make3FGLxml.py $./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 $ls /lib/x86_64-linux-gnu/libgf* ls: cannot access '/lib/x86_64-linux-gnu/libgf*': No such file or directory $sudo apt-get install libgfortran3:amd64 $ls /lib/x86_64-linux-gnu/libgf* ls: cannot access '/lib/x86_64-linux-gnu/libgf*': No such file or directory $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 $./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