DFM requires the expectk, tcl/tk libraries and version 3.11.3
of SPC libraries in order to run.
| 1 |
Install SPC |
Install SPC as per the instructions on the ATNF SPC homepage. Version
3.11.3 is available under the software pages on this website.
If you already have a version of SPC running and wish to install version
3.11.3 concurrently simply copy the file "spc.exe" from the
tar file to your spc install directory and rename it "spc3.11.3.exe".
Make a copy of the shell script "spc" in the same directory
and edit it to call "spc3.11.3.exe". Save it as "spc3.11"
for example.
|
| 2 |
Install TCL/TK |
Many linux distributions will have libraries for TCL/TK installed by
default. The rpm packages for Redhat 9 are available on the software page.
To install on Redhat use the command "rpm -i <package.rpm>.
If you get an error related to failed dependancies you may the wrong versions
of the rpm packages. Packages in rpm format are available for a range
of linux distributions and versions on websites such as pbone.net and
rpmfind.net.
|
| 3 |
Install expect & expectk |
Install the expect and expectk packages as above.
If the install is successfull the command "which expectk" should
return "/usr/bin/expectk" or similar.
|
| 4 |
Test the SPC plotting function |
Test the SPC plotting function by starting up spc and loading
an rpfits file. Plot one of the scans- if axis lables and text lables are
missing from the PGPLOT window you will need to edit the "spc"
shell script in the SPC install directory to point to the "grfont.dat"
file. This file is incluced within the SPC tar file. |
| 5 |
Install DFM |
Copy the DFM script to a directory in your path "/usr/local/bin"
or "/home/<username>/bin" for example.
Edit the first line of the file to reflect the path to the expectk executable
e.g. "#! /usr/bin/expectk".
If you renamed spc.exe earlier find the line "spawn spc" near
the start of the DFM script. Change this to "spawn spc3.11"
or whatever you renamed the spc shell script in step 1.
That's it!
|
| 6 |
Before you start |
You will need to define your settings the first time you start
DFM. The settings button on the interface allows you to define the type
of file you are trying to read and the observation schedule you used. See
the DFM Manual for more details. |