#!/bin/csh -f 
#
# HESSI Environment Variable Setup File
# 
# The complete list of HESSI environment variables necessary for 
# running the HESSI software are in this file, which is originally 
# located at $SSW/hessi/setup/setup.hessi_env.  Do NOT edit this 
# original file.
#
# Users should copy this file to their local $SSW/site/setup directory 
# (and/or $HOME directory on Unix) and edit it as described below (below the
# dashed line) for their site.  When you run SSW IDL, the $SSW/site/setup 
# version will override the $SSW/hessi/setup version.
#
# The $SSW/site/setup files are not overwritten when you do an SSW update.
#
# Three environment variables must be defined elsewhere before this file
# is executed:
#   SSW - should point to the root of your ssw tree, e.g. c:\ssw
#   SSWDB  - should point to your SSWDB root directory
#            Note: As of June 2004, for HESSI, SSWDB is only being used for some data 
#            data files that speed up the pixon algorithm.  If you've downloaded those files, 
#            SSWDB should point to that directory.
#   On Unix, they should be defined in your .login file prior to the
#      execution of the SSW setup file.
#   On Windows, they should be defined in your $SSW/site/setup/sswidl.bat
#
# Modifications:
#   8-Dec-2000, Kim Tolbert to show commented-out examples.
#   13-jun-2001, jmm, jimm@ssl.berkeley.edu, with final
#          versions of archive directories
#   20-Jun-2001, Kim Tolbert.  Define SSW_HESSI to HESSI_PATH, change order of
#     setenv's and add comments so user can easily edit this file for their 
#     site-specific setup.
#   10-Apr-2002, Kim Tolbert.  Added HSI_DATA_USER and HSI_USE_SIM
#   14-Oct-2003, Kim Tolbert.  Added HSI_QLOOK_IMAGE_FILE_ARCHIVE 
#   7-Jun-2004, Kim Tolbert.  After change in release strategy (no more release branch),
#     set HESSI_PATH here.  It should always be set to $SSW/hessi now.
#   30-Aug-2005, Kim Tolbert.  Added HSI_ARCHIVE_MOUNTED

#-------------------------------------------------------------------------------------

setenv HESSI_PATH		$SSW/hessi

# EDIT the following line to point to the root of the directory 
# containing the HESSI level 0 data files
setenv HSI_DATA_ARCHIVE /hessi/data1/hessidata

# EDIT the following line to point to the directory containing the
# quicklook image FITS files.  In the archive they are under the metadata/qlook_image
# directory.  On your computer they could be anywhere you want.
setenv HSI_QLOOK_IMAGE_FILE_ARCHIVE $HSI_DATA_ARCHIVE/metadata/qlook_image

# EDIT the following line to point to a local directory where level 0 data
# files will automatically be copied if necessary.  If HSI_DATA_ARCHIVE points
# to a local directory (not an NFS-mounted file system), then HSI_DATA_ARCHIVE
# and HSI_DATA_USER can point to the same directory.
setenv HSI_DATA_USER ""

# REMOVE the following lines  (since the paths are relative,
# they will be defined correctly in the $SSW/hessi/setup version).
setenv SSW_HESSI                $HESSI_PATH
setenv SSWDB_HESSI              $SSW_HESSI/dbase
setenv HSI_FILEDB_ARCHIVE       $SSW/hessi/dbase
setenv HSI_FLARE_LIST_ARCHIVE   $SSW/hessi/dbase
setenv HSI_CLK_DELTA_DIR        $SSW/hessi/dbase
setenv HSI_GRID                 $SSWDB_HESSI/grid_resp
setenv HSI_SPEC                 $SSWDB_HESSI/spec_resp
setenv HSI_GEN                  $SSWDB_HESSI
setenv HSI_SOH                  $SSWDB_HESSI/soh
setenv HSI_SIMS                 $SSWDB_HESSI/sims
setenv HSI_ASPECT               $SSWDB_HESSI/aspect
setenv HSI_CATALOG_ARCHIVE      $SSWDB/hessi
setenv HSI_DOC			$SSW/hessi/doc
setenv HSI_USE_SIM              false
setenv HSI_USE_ASPECT_SIM	false

# UNCOMMENT the following line and EDIT to point to where the 
# synoptic data should be stored.  Or you may prefer to define
# USER_SYNOP_DATA in your personal IDL startup file.  If left
# undefined, synoptic data will be stored in your working directory.
#setenv USER_SYNOP_DATA /hessi_data/synoptic

# EDIT the following line to true if you have the full RHESSI data archive
# mounted on your computer, and HSI_DATA_ARCHIVE points to it.  If true,
# the expected directory in the archive will be searched for a file, but the
# entire archive will not be searched (the search is unnecessary, and is
# very time-consuming for the full archive).
setenv HSI_ARCHIVE_MOUNTED	false
