#/eofcs/site.login
#
# EAF site-specific login script.  This script is run from the general CDS
# login script, usually found in /cs/cds.login
#
#  Certain environment variables are forced to vary from site to site, either
#  because they refer to specific resources such as printers, or because they
#  point to very large data directories.  A site-specific script such as this
#  one can be used to define these variables.
#
# In order for this script to be run, the environment variable CDS_SITE_LOGIN
# must point to it.

#  History -
# 26 April 1996  Chris Haskell - changed CDS_QKLSCI_DATA and CDS_RELSCI_DATA
# to /cdsr3/qklsci and /cdsr3/relsci.
# 26 April 1996  William Thompson - Added extra directory for TIME_CONV
# 1 May 1996 William Thompson - Added directories for EIT images
# 8 May 1996 Chris Haskell - changed archive disk to cdsd5
#  Modified: 31 May 1996, William Thompson, moved CDS_SUMMARY_DATA to
#       cds.login
# 12 July 1996 Chris Haskell - changed the disk to cdsd3
# 1 August 1996 Chris Haskell - changed the disk to /cdsfits4
# 16-Aug-1996, William Thompson, added data directories which are mirrored.
# 19 August 1996  Chris Haskell - changed disk to cdsd4
# 6 Sep 1996  Chris Haskell - changed qkl disk to /cdsr1
# 27 Sep 1996 Chris Haskell - changed disk to /cdsd5
# 11 Nov 1996 Chris Haskell - changed disk to /cdsd2
# 24 Nov 1996 Chris Haskell - changed qkl disk to /cdsr2
# 14 Dec 1996 Chris Haskell - changed the fits disk to /cdsfits7
# 22 Dec 1996 Ron Yurow - changed disk to /cdsd3
# 4 Mar 1997  Chris Haskell - changed the fits disk to /cdsfits8
# 10 Mar 1997 Chris Haskell - changed the qkl disk to /cdsr3
# 15 Mar 1997 Chris Haskell - changed archive disk to /cdsd5
# 15 Apr 1997 Ron Yurow - changed the fits disk to /cdsfits10
# 22 Apr 1997 Chris Haskell - changed the archive disk to /cdsd2
# First of all, define where the data directories are.
# 20 May 1997 Chris Haskell - changed the archive disk to /cdsd3
# 28 May 1997 Ron Yurow - changed the fits disk to /cdsfits11
# 18 Jun 1997 Ron Yurow - changed the archive disk to /cdsd4
# 7  Jul 1997 Chris Haskell - changed the fits disk to /cdsfits12
# 26 Jul 1997 Ron Yurow - changed the archive disk to /cdsd5
# 13 Jul 1997 Ron Yurow - changed the fits disk to /cdsfits13
# 13 Jul 1997 Ron Yurow - changed the qkl disk to /cdsr2
# 3 Sept 1997 Chris Haskell - changed archive disk to /cdsd2
# 22 Sep 1997 Ron Yurow - changed the fits disk to /cdsfits14
# 11 Oct 1997 Ron Yurow - changed the archive disk to /cdsd3
# 3 Nov 1997  Chris Haskell - changed the fits disk to /cdsfits15
# 17 Nov 1997 Ron Yurow - changed the archive disk to /cdsd4
# 5 Dec 1997 G.Dimitoglou- Rotation of cdsa2:/cdsfits with
#                          archive(soho-arch02). Physical 
#                          cdsa2:/cdsfits location, 
#                          replaced by /cdsfits16
# 5 Dec 1997 Chris Haskell - changed fits disk to /cdsfits16
# 31 Dec 1997 Chris Haskell - changed archive disk to /cdsd5
# 22 Jan 1998 G.Dimitoglou- Rotation of cdsa2:/cdsfits2 with
#                          archive(soho-arch02). Physical
#                          cdsa2:/cdsfits2 location,
#                          replaced by /cdsfits17
#  2 Feb 1998 Chris Haskell - changed to fits disk /cdsd2
# 27 Feb 1998 Chris Haskell - changed fits disk to /cdsfits18
# 4 Apr 1998 Chris Haskell - changed fits disk to /cdsfits19
# 7 May 1998 Chris Haskell - changed fits disk to /cdsfits20
# 18 May 1998 William Thompson, added TRACE_PRIVATE evar
# 09 Jun 1998 Ron Yurow - changed fits disk to /cdsfits21
# 06 Nov 1998 Ron Yurow - changed fits disk to /cdsfits22
# 30 Dec 1998 Chris Maroney - changed fits disk to /cdsfits23
# 22 Mar 1999 Chris Maroney - changed fits disk to /cdsfits24
# 21 Apr 1999 Chris Maroney - changed fits disk to /cdsfits25
# 28 Sep 1999 Chris Maroney - changed fits disk to /cdsfits26
# 21 Feb 2000 Jeff Payne - changed fits disk to /cdsfits/arch26
# 25 APR 2000 Ron Yurow  - changed fits disk to /cdsfits/arch27
# 29 Nov 2000 William Thompson - changed CDS_SS_DERE to point to SolarSoft
# 20 JUN 2001 Ron Yurow  - changed fits disk to /cdsfits/arch28
# 09 AUG 2001 Ron Yurow  - Added Env Variable CDS_DSN_MERGED
# 02 NOV 2001 Ron Yurow  - Changed the default laser printer to soho-laser2
#                          because soho-laser4 is useless unless fixed.
#                          Also changed the default color printer to
#                          soho-color3 (cheaper, better printing)
# 11-Dec-2001 William Thompson - use soho-arch06 instead of 02
# 20 JUN 2002 Ron Yurow  - changed fits disk to /cdsfits/arch29
# 30-Jul-2002 William Thompson - use soho-archive instead of numbers
# 29 OCT 2002 Ron Yurow  - changed the value of CDS_DSN_MERGED to reflect
#                          the new location of the DSN merged file. Also
#                          changed the default printer back to soho-laser4.
# 16 Nov 2005 Chris Maroney - changed fits disk to /cdsfits/arch30
# 11 Apr 2006, William Thompson, changed to SOHO archive directories

setenv CDS_DATA         /eofcs/data
setenv CDS_LRG_DATA     /eofcs/lrg_data

# Printers.  Depending on the host, pick printers in either building 3 or 26.
# However, don't override any definitions already made.

if (`hostname` == "cdso7.nascom.nasa.gov" || \
    `hostname` == "cdso8.nascom.nasa.gov" || \
    `hostname` == "cdso9.nascom.nasa.gov") then
        if ( ! $?PRINTER ) setenv PRINTER soho-laser4
        if ( ! $?PSCOLOR ) setenv PSCOLOR soho-color3
else 
        if ( ! $?PRINTER ) setenv PRINTER eaf-laser1
        if ( ! $?PSCOLOR ) setenv PSCOLOR eaf-color5
endif

# It's not necessary that the enviroment variable PSLASER be defined--all the
# printers here are PostScript-capable.  However, if the user has defined
# PSLASER, then make sure that it is the same as PRINTER.  Otherwise, the user
# might get confused.

if ( $?PSLASER ) setenv PSLASER $PRINTER

# Large data directories.

setenv CDS_CDROM_DATA   /cdproc/lz
setenv CDS_TM_DATA      /cdsd2/arch/archive2
setenv CDS_QKLSCI_DATA  /cdsr2/qklsci/
setenv CDS_RELSCI_DATA  /cdsr2/relsci/
setenv CDS_CAL_FITS     /cdsfits/arch30
set cdsfits=/soho-archive/private/data/processed/cds
setenv CDS_FITS_DATA    $cdsfits/cdsfits30:$cdsfits/cdsfits29:$cdsfits/cdsfits28:$cdsfits/cdsfits27:$cdsfits/cdsfits26:$cdsfits/cdsfits25:$cdsfits/cdsfits24:$cdsfits/cdsfits23:$cdsfits/cdsfits22:$cdsfits/cdsfits21:$cdsfits/cdsfits20:$cdsfits/cdsfits19:$cdsfits/cdsfits18:$cdsfits/cdsfits17:$cdsfits/cdsfits16:$cdsfits/cdsfits15:$cdsfits/cdsfits14:$cdsfits/cdsfits13:$cdsfits/cdsfits12:$cdsfits/cdsfits11:$cdsfits/cdsfits10:$cdsfits/cdsfits9:$cdsfits/cdsfits8:$cdsfits/cdsfits7:$cdsfits/cdsfits6:$cdsfits/cdsfits5:$cdsfits/cdsfits4:$cdsfits/cdsfits3:$cdsfits/cdsfits2:$cdsfits/cdsfits/
setenv SUM_FITS_DATA    +/soho-archive/private/data/processed/sumer
setenv CDS_FITS_QLI     /soho-archive/private/data/planning/cds
setenv CDS_SS_DERE      /solarsoft/packages/chianti/dbase
setenv CDS_TCL_FTRACK   /sohos1/config/tcl/cb2feat
setenv CDS_OLD_CIF      /soho-archive/staging/oldcif

# Some data directories are mirrored from RAL.  For those, it's better to point
# to the /cs directory, because that's what will be consistent with the
# software.

setenv CDS_INFO         /cs/data/info
setenv CDS_INFO_NOTE    /cs/lrg_data/info/swnote
setenv CDS_STUDYSHEETS  /cs/lrg_data/info/studysheets
setenv CDS_ENG_DEMO     /cs/data/engineering/demo

# These environment variables are used to get color tables and the
# degridding data for EIT images in IMAGE_TOOL.

setenv SSW_SETUP_DATA   /solarsoft/gen/setup/data
setenv SSW_EIT          /solarsoft/soho/eit

# The environment variable CDS_EXTERNAL must point to a shareable object file
# which has been properly compiled for the operating system in question.

setenv CDS_EXTERNAL     /cs/external/external.so

# Define the environment variable for the SOHO private planning data.

if ( ! $?PRIVATE_DATA ) setenv PRIVATE_DATA /soho-archive/private/data/planning
if ( ! $?TRACE_PRIVATE ) setenv TRACE_PRIVATE $PRIVATE_DATA/trace

# Define the environment variable for the CDS Catalog Input Files.

setenv CDS_CIF          /soho-archive/staging/cif

# Enviroment variable to point to the merged DSN file which we FTP from the
# the ECS.  This file is used so that MK_PLAN knows which passes are 
# D27 passes.

setenv CDS_DSN_MERGED   /soho-archive/public/data/synoptic/dsn

# If on any of the CDS computers controlled by RAL, then define TIME_CONV to
# point to the file local_diff.dat.  This is because these computers run on GMT
# rather than local time.

if (-e /usr/users/master/data/local_diff.dat) then
        if (! $?TIME_CONV) setenv TIME_CONV /eofcs/data/time
        setenv TIME_CONV "$TIME_CONV":/usr/users/master/data
endif
