#    
# SEISAN definitions to be sourced from users .cshrc file
#
# -- SEISAN 7 June 11, 1999 ---------------------------------------
#
# changes:
#

#
# set platform, used for compilation, can be linux or solaris
#
setenv SEISARCH solaris      

#
#    set SEISAN top directory
#
  setenv SEISAN_TOP /net/seismo-DVLP/s2000/seismo   # top directory for data 
  setenv SEISAN_RES /net/seismo-DVLP/s2000/seismo   # top directory for programs

#
# set editor
#
  setenv SEISAN_EDITOR vi 

#
# rename laser printers
#
  setenv PRINTER sps
  setenv IMAGEN sps

#
# set X and Y scaling for Postscript output 
#   some examples:  A4     x=0.55,y=1.0
#                   Letter x=0.55,y=0.9
#
  setenv SEISAN_PSSCALE_X 0.55 
  setenv SEISAN_PSSCALE_Y 1.0 

#
# set default data base
#
  setenv DEF_BASE TEST

#
# set up search path
#
  set pro_path = ($SEISAN_RES/PRO)
  if( `echo $path | grep -c pro_path` == 0 ) then 
    set path=($pro_path $path)
  endif
  set com_path = ($SEISAN_RES/COM)
  if( `echo $path | grep -c com_path` == 0 ) then 
    set path=($com_path $path)
  endif

#
# aliases for SEISAN
#
  alias pr            'cd $SEISAN_RES/PRO'     
  alias li            'cd $SEISAN_RES/LIB'      
  alias ic            'cd $SEISAN_RES/INC'        
  alias re            'cd $SEISAN_TOP/REA'
  alias da            'cd $SEISAN_TOP/DAT'
  alias wo            'cd $SEISAN_TOP/WOR'
  alias wa            'cd $SEISAN_TOP/WAV'
  alias ca            'cd $SEISAN_TOP/CAL'
  alias co            'cd $SEISAN_TOP/COM'
  alias in            'cd $SEISAN_RES/INF'


#
# following lines are for the PITSA analysis package
#
  setenv PITSAHOME $SEISAN_TOP/DAT
  setenv PITSA_CONFIG_PATH_ENV $PITSAHOME/
  setenv PITSA_PRINTDEF_PATH_ENV $PITSAHOME/
  setenv PITSA_PRINTDEF_NAME_ENV 8X11_landscape.PS
  
#
# include seismo/LIB in LD_LIBRARY_PATH, needed by NANSEI
#
if ($?LD_LIBRARY_PATH) then
  setenv LD_LIBRARY_PATH $SEISAN_RES/LIB:$LD_LIBRARY_PATH
else
  setenv LD_LIBRARY_PATH $SEISAN_RES/LIB
endif
#
# set CLASSPATH for java app
#
if ($?CLASSPATH) then
  setenv CLASSPATH $SEISAN_TOP/PRO:$SEISAN_TOP/PRO/jseisan.jar:$CLASSPATH
else
  setenv CLASSPATH $SEISAN_TOP/PRO:$SEISAN_TOP/PRO/jseisan.jar
endif

#
# aliases for Java tools
#
alias jseisan 'java -DSEISAN_TOP=$SEISAN_RES -classpath $SEISAN_TOP/PRO/jseisan.jar SEISAN'
alias seisconf 'java -DSEISAN_TOP=$SEISAN_RES -classpath $SEISAN_TOP/PRO/jseisan.jar SEISCONF'
alias sformat 'java -DSEISAN_TOP=$SEISAN_RES -classpath $SEISAN_TOP/PRO/sformat.jar Sformat' 


#
# set SEISAN extension code, this variable can be used to implement specific 
# code into SEISAN, at the moment used are:
#                BGS
#
setenv SEISAN_EXTENSION none

#
# set SAC library file to be linked to when compiling
#
setenv SACLIB /net/seismo-DVLP/PROG/sac/solaris/lib/sacio.a 
