Script to Setup ISIS for VICAR Users
#7.6 Script to Setup ISIS for VICAR Users
#######################################################################
#                                                                     #   
#  This utility sets up ISIS for use with VICAR.                      # 
#                                                                     # 
#  Note 1: VICAR must be set up before sourcing this utility.         #
#                                                                     #
#  Note 2: In the case that there are name conflicts between VICAR    # 
#          and ISIS programs, VICAR programs take precedence.         #
#          If you would like to change the precedence to ISIS,        #
#          edit $TAEPDF/slogon.pdf.                                   #
#                                                                     # 
#######################################################################
#
#
#  Check to see if ISIS path set
#
if ($?ISISR == 0) then 
   setenv ISISR   /usr/local/isisr
endif
#
#  vicset1 defines ISISDATA for use with VICAR programs like isis2vic.
#  Unset it here because the ISIS setup only resets it if it's not already
#  set.  This may interfere with people defining their own ISISDATA env vars -
#  this must be done after isisset is run now.
#
if ($?ISISDATA != 0) unsetenv ISISDATA
#
#  Set up system
#
setenv DEVISISR $ISISR/dev
source $ISISR/sys/csh/isispgmdef
#
#  ISIS now has dynamic versions of its libraries.  
#  Include $ISISLIB in the LD_LIBRARY_PATH environment variable
#
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${ISISLIB}
#
#  The TAE environment is set up in vicset1.csh.  Ensure the ISIS path
#  to the TAE libraries exists.
#
#
# The following is a terrible kludge.  We have to add ISIS directories
# to TAE's search path, but the only way to do that is to actually modify
# slogon.pdf, which is (for VICAR anyway) directly on the CD-ROM.  Until
# it can be modified to do this properly, we assign the two ISIS directories
# to two libraries that are set up by VICAR's slogon.pdf but are not needed
# by external sites (and actually aren't even distributed) - MPFLIB (Mars
# Pathfinder) and HWLIB (Mars '96).  If you wish to avoid this kludge and
# have VICAR on disk instead of CD-ROM, you can edit $TAEPDF/slogon.pdf
# to add $ISISEXE and $PICEXE directly to the TAE search path.
#
setenv MPFLIB $ISISEXE
setenv HWLIB $PICEXE
#
#  Setup for IDL interface to ISIS
#
if ($?IDL_PATH == 0) then
    setenv IDL_PATH
endif
if ($VICCPU == 'sun-4') then 
    setenv IDL_PATH \+$ISISEXE:$(IDL_PATH)
endif 
if ($VICCPU == 'sun-solr') then
    setenv IDL_PATH '+$ISISEXE:'$IDL_PATH''
endif
#           
# IDL Start up
#
setenv IDL_STARTUP $ISISR/idl_startup
#
# Run ISIS
# Start up idl and then run tae
#
alias isis 'if ( $?DISPLAY != 0) xterm -e idl &; taetm'