Installing CASPER

This document contains details on where and how to install CASPER on your system. It is intended for UNIX users.   The CASPER IDL code is platform independent, however the shareable SPICE library is platform dependent.  The distribution of CASPER includes shareable libraries for HP, Sun-Solaris, DEC Alpha, and Silicon Graphics operating systems.  This section of the User's Guide details how to configure the CASPER distribution for your particular system so that you can begin using the software. CASPER is currently available for HP, Sun-Solaris, DEC Alpha, and Silicon Graphics operating systems. Some users have succesfully ported CASPER to linux but this is not currently a supported platform. CASPER is written using IDL, FORTRAN and C code. You need to have access to IDL 5.03 or later to run the program (it requires IDL widget capabilities).  You should be able to use the pre-compiled shareable SPICE library.  However, if you are using a different operating system from those listed above, or if you encounter problems with the distributed shareable SPICE library, you will need to recompile the library.  This requires a C compiler and a FORTRAN77 compiler.

CASPER uses the NAIF SPICE libraries intensively.  However, you will not need the NAIF SPICE library to run CASPER unless you are forced to recompile the shareable SPICE library.

          CASPER consists of the following archive files:
  1. casper.tar.Z:  This contains the main CASPER source code, libraries and documentation.
  2. kernels.tar.Z: This contains the Kernel files required by CASPER and includes example tour files.
  3. user.tar.Z: This contains the User source code and libraries.
  4. mapsgap.tar.Z: This contains the MAPSGAP tools.
  5. personal.tar.Z: This contains the personal directory setup that each individual CASPER user will need.
If you do not already have a version of CASPER on your computer, you should download all of these archive files and follow the installation instructions below.  If you already have an older version of CASPER and just want to update, you can download only the archive for the part you are updating (e.g. MAPSGAP only, or CASPER only). When bugs are discovered, individual patch files will also be available from the download site. This latest version of CASPER no longer comes with its own modified version of Events, but has been updated to work with the newest version of Events which has also been updated to be CASPER-friendly. This should ensure that you can update Events independently of CASPER and be sure that they will still function together.

Events software can only be obtained directly from JPL, and a licensing agreement must be signed.  International users may have to complete additional paperwork.  To see about getting access to the Events web site and the Events software, contact Jennifer Schikbernd (jks@jpl.nasa.gov) or Kevin Grazier (krg@anlashok.jpl.nasa.gov) at JPL.
 

This section describes how to set up the system-wide CASPER environment. The CASPER installer (e.g. the systems manager) will usually do this by editing the file casper_setup to define the environment variables required by CASPER. All users must source this file and also their own personal setup file which is described in the following section before they run CASPER.

The steps for setting up the general CASPER environment are:

In addition, each person using CASPER will need to setup their own personal CASPER environment. This will allow them to customize various aspects of CASPER and to save/load data from/to their personal CASPER sessions. This is described in the next section. Anybody wishing to use CASPER will need to source the casper_setup file (see above), and create one's own personal CASPER workspace so that CASPER sessions do not interfere with each other.

This is done by creating a directory structure in the user's own directory and using a personal setup file to make this available to CASPER, via the following steps:

Make sure you have sourced both setup files and proceed to the next step. The SP files are located in two directories. $SPICE_EPHEM contains the ephemeris files for solar system objects and all kernels in this directory are loaded by CASPER at run time. $SPICE_SPK contains the tour files for Cassini and you will be asked to pick just one of these for your CASPER session at run time.  Within each of these directories are two subdirectories: axp-unix and sun-solr.  The binary versions of the Kernels are in these sub-directories.  Binary versions for HP, Sun-Solaris, and SGI are identical and are found in the sun-solr subdirectory.  Binary files for DEC-Alpha are in the axp-unix subdirectory.  CASPER knows which directory to look in for your computer.  The kernels.tar file  contains binary and transfer (ASCII) versions of the Kernel files you need to run CASPER.  You should be able to run CASPER without any further manipulation of the SPICE kernels.  (DEC-Alpha versions may be missing - if you need DEC-Alpha versions of the SPICE kernels, follow the conversion instructions below.)

The kernels.tar file is quite large (more than 26MByte), so if you have kernel files from a previous CASPER installation, you can just copy these into the corresponding directory. However, you may wish to check that you have the most recent versions of these files.

To convert the SP Kernel files from transfer (.tsp) format to binary (.bsp), you should run the SPICE tool SPACIT on them (this is included in the NAIF SPICE distribution in the directory naif/toolkit/exe but is not distributed with CASPER) and convert them from transport format to binary format.

NOTE: All binary files should be given the file extension .bsp as this is used for filtering purposes by CASPER.

Other tour files may be downloaded from the Cassini Tour Design homepage and should be placed in the $SPICE_SPK directory.

An example SPACIT conversion is shown below: 



csh> spacit
 

   Welcome to SPACIT Version 6.0.0

   SPICE File Summary and Conversion Utility
 

         SPACIT Options

   ( Q ) Quit.
   ( L ) Log SPACIT output to a file.
   ( T ) Convert transfer file to binary file.
   ( B ) Convert binary file to transfer file.
   ( S ) Summarize binary file.
   ( R ) Read comment area of binary file.

   Option: t

Enter the name of the transfer file to be converted.

Filename? T18-2.CATO.tsp

Enter the name of the binary file to be created.

Filename? T18-2.CATO.bsp

Converting from transfer file to binary file.

Converting Transfer File: T18-2.CATO.tsp
To Binary File          : T18-2.CATO.bsp

Please wait...

Binary file created.

The operation was successful

         SPACIT Options

   ( Q ) Quit.
   ( L ) Log SPACIT output to a file.
   ( T ) Convert transfer file to binary file.
   ( B ) Convert binary file to transfer file.
   ( S ) Summarize binary file.
   ( R ) Read comment area of binary file.

   Option: q

Quitting the program.

csh>

Locate the file casper_printers.dat which is stored in the $casper_DAT directory. This file needs to contain details of all the printers which you wish to have available within CASPER for printing.

Each line of the file contains the information for one printer. First there is the string which will appear in the printer selection widget. You should edit this to contain whatever details you require to appear in the printer selection window such as, name, type and location of the printer. This is followed by a double colon (::) and then the command that needs to be executed in order to print a PostScript file e.g. ::lpr or ::lpr -Ppostscript_printer. Note you should not leave a space between the last colon and the print command. You can enter a number of printer options, with the order in which you specify them being the order in which they will appear in the printer selection widget, with the first being the default selection.

An example file for Unix systems:

Default Printer ::lpr
sys$color Color Printer ::lp -dcolor_laser
sys$print Old Postscript Printer Room 678 ::lpr -Psys$print
NOTE: The first printer in this file will be the one that is used as the default by CASPER and is the printer that is currently ALWAYS used by CASPER in batch mode.
  The final step to installing CASPER is to compile the IDL code and save it in a pre-compiled form. This avoids having to compile the IDL code each time CASPER is started.

The command CASPER_COMPILE will run the compilation script and create the compiled CASPER for you. It will also start CASPER.

csh> CASPER_COMPILE
CASPER is now ready to go.

After the first time, you can start CASPER with the command

csh> CASPER

which will start the program running more quickly than the CASPER_COMPILE command.  If you ever receive patches or code updates, however, you must use the CASPER_COMPILE command again to recompile and save the new version.
 

You are now ready to run CASPER . If this is your first time using CASPER, then it is recommended that you follow the Example CASPER Session.
  If you have any problems getting CASPER set up, or if the instructions given here are not clear, then please contact casper@casper.colorado.edu.