next up previous contents
Next: Detailed Documentation for SPECTRUM Up: Quick Installation & Use Previous: Running Spectrum   Contents


Finalizing the Installation (UNIX/Linux)

Figure: The final smoothed spectrum (vega.sm) obtained by using the program SMOOTH2 to convolve a Gaussian line spread function (2Å resolution) with the synthetic spectrum vega.spc produced in the test described in § [*]. How to use SMOOTH2 is described briefly in § [*].
Image vega_sm

If all has gone well with the above test, you are ready to finalize the installation of SPECTRUM and all of its auxiliary programs (see Chapter [*]). First, you need to determine where you are going to place all of the executable binaries. In most cases, you will want to place the executable binaries in /usr/local/bin, but if you are on a multiuser system, and you are the only one who will be using SPECTRUM, it might be better to place the executables in a local ``bin'' directory. Consult your system administrator. If the executables are to be placed in /usr/local/bin, then no modifications need to be made to Makefile. If you want them to go elsewhere, edit Makefile and change the line

LOCALBIN = /usr/local/bin
so that /usr/local/bin is replaced with the path where you want the executables to go. Once all is properly set up, issue the command
make all
which will compile SPECTRUM and all its auxiliary programs. Then issue the command (you will probably need to be root or superuser to do this)
make install
which will move all the executables to the bin directory. Once this is done, you will be able to invoke SPECTRUM simply by typing spectrum at the linux prompt; it will no longer be necessary to include the leading ./ as in the test in § [*]. Please remember that you will need to have the file stdatom.dat in whatever directory you use for your working directory (unless you use switch ``a'' - see § [*] below). SPECTRUM looks in the working directory for stdatom.dat unless you use that switch. You will probably also want to move the linelist file luke.lst to a special directory, such as /usr/local/lines.

Now, as one last test (this assumes you have carried out the test described in § [*], and that you are still in the /spectrum directory), run the program smooth2:

> smooth2

Enter name of input file > vega.spc

Enter name of output file > vega.sm

Enter spacing in Angstroms of the input spectrum > 0.02

Enter output resolution in Angstroms > 2.0

Enter spacing in Angstroms of spectrum in output file > 0.5

This will smooth the output spectrum produced in § [*] to a resolution of 2Å with a wavelength spacing of 0.5Å. The result should look like Figure [*]. If your computer cannot find the program SMOOTH2 this either means that the install step was not successful in moving the SPECTRUM programs to your bin directory, or the bin directory is not in your PATH. On some systems, you may need to issue the command rehash before the operating system knows the location of the newly moved executables.

There is a graphical user interface (GUI) available for SPECTRUM that integrates the operation of SPECTRUM, SMOOTH2 and other auxiliary programs and simplifies the process of computing synthetic spectra. See Chapter [*].


next up previous contents
Next: Detailed Documentation for SPECTRUM Up: Quick Installation & Use Previous: Running Spectrum   Contents
grayro 2010-05-27