Instructions for the installation of the PySOAR package are below. In order to install PySOAR, several other packages have to be installed as well including python, PyRAF, and IRAF. Descriptions and links to each of those packages are included under dependencies. All of the dependent programs are available on the SOAR ftp site.
The PySOAR user package v0.01 was released on ? March 2012 and can be downloaded here. Release notes are available.
To install the package as root, create a directory to contain the PySOAR external package files. This directory should be outside the IRAF directory tree and must be owned by the IRAF account. In the following example, this root directory is named:
/iraf/extern/pysoar
Make the appropriate file name substitutions for your site.
Log in as IRAF and edit the extern.pkg file in the hlib directory to define the package to the CL. From the IRAF account, outside the CL, you can move to this directory with the commands:
% cd /iraf/iraf/unix/hlib/
Define the environment variable soar to be the pathname to the soar root directory. UNIX pathnames must be terminated with a /. Edit extern.pkg to include:
reset pysoar = /iraf/extern/pysoar/
task pysoar.pkg = pysoar$pysoar.cl
Near the end of the hlib$extern.pkg file, update the definition of helpdb so it includes the soar help database, copying the syntax already used in the string. Add this line before the line containing a closing quote:
,pysoar$lib/helpdb.mip\
Change directories to the PySOAR root directory created above and unpack the download file pysoar.tar.gz:
% cd /iraf/extern/pysoar/
% tar zxvf <path>/pysoar.tar.gz
where <path> is the relative path from /iraf/extern/pysoar to the downloaded file.
To install the package under your home directory, unpack the downloaded file pysoar.tar.gz. Then add the following line to your user login.cl:
reset pysoar = "[your path]"
task pysoar.pkg = "pysoar$pysoar.cl"
reset helpdb = (envget("helpdb") // ",pysoar$lib/helpdb.mip")
Finally to build the documentation make sure you have sphinx installed and execute:
% cd /iraf/extern/pysoar/doc
% make html
The start point for the documentation is in build/index.html. For a manual in pdf format (you need LaTeX as well) use:
% cd /iraf/extern/pysoar/doc
% make latex
% cd /iraf/extern/pysoar/doc/build/latex
% pdflatex PySOAR.tex
% pdflatex PySOAR.tex
The manual will than be in PySOAR.pdf