Difference between revisions of "Galfit"

From Public PIC Wiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
tldr;
+
For quickly getting Galfit working on PIC, do the following:
 
Add the lines:
 
Add the lines:
 
<pre>
 
<pre>
Line 6: Line 6:
 
</pre>
 
</pre>
  
then the following works:
+
to your "~/.bashrc" file, logout and login again. Then the following works:
 
<pre>
 
<pre>
  
Line 12: Line 12:
 
</pre>
 
</pre>
  
What is the problem:
+
<div style="width: 700px;">
 +
A more detailed description: <br>
 
The problem with Galfit, is the code was last distributed on April 23, 2013
 
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
 
in binary form. Only downloading the binary (Redhat/Enterprise 64) cause a
Line 27: Line 28:
 
For documentation and in the case someone wants their own installation or
 
For documentation and in the case someone wants their own installation or
 
later needs to reproduce this:
 
later needs to reproduce this:
 +
</div>
  
 
1) Download the Galfit source code: <br>
 
1) Download the Galfit source code: <br>

Latest revision as of 08:59, 25 April 2024

For quickly getting Galfit working on PIC, do the following: 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

to your "~/.bashrc" file, logout and login again. Then the following works:


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

A more detailed description:
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