Galfit

From Public PIC Wiki
Revision as of 08:55, 25 April 2024 by Eriksen (talk | contribs) (Created page with "tldr; Add the lines: <pre> export LD_LIBRARY_PATH=/data/agn/scratch2/eriksen/galfit_depend/:$LD_LIBRARY_PATH export PATH=$PATH:/data/agn/scratch2/eriksen/galfit/bin </pre> t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

tldr; Add the lines:

export LD_LIBRARY_PATH=/data/agn/scratch2/eriksen/galfit_depend/:$LD_LIBRARY_PATH
export PATH=$PATH:/data/agn/scratch2/eriksen/galfit/bin

then the following works:


galfit /data/agn/scratch2/eriksen/galfit/galfit-example/EXAMPLE/galfit.feedme

What is the problem: The problem with Galfit, is the code was last distributed on April 23, 2013 in binary form. Only downloading the binary (Redhat/Enterprise 64) cause a problem with missing libsnl library. This note explains how to get galfit working at PIC.

The fastest way is downloading the Redhat version and compile libsnl from source. This is relatively easy, but as indicated above, we have both downloaded and compiled this dependency. Setting these variables in your .bashrc makes the system find the binary ($PATH) and the library ($LD_LIBRARY_PATH). Note that you might need to specify these when submitting jobs through HTCondor.

For documentation and in the case someone wants their own installation or later needs to reproduce this:

1) Download the Galfit source code: wget https://users.obs.carnegiescience.edu/peng/work/galfit/galfit3-enterprise64.tar.gz tar -xf galfit3-enterprise64.tar.gz

2) Compile and install libsnl

Download libsnl:

wget https://github.com/thkukuk/libnsl/releases/download/v2.0.1/libnsl-2.0.1.tar.xz
tar -xf libnsl-2.0.1.tar.xz

Compile libsnl:

./configure --prefix /data/agn/scratch2/eriksen/galfit_depend
make
make install