#!/bin/sh
#=======================================================================
# Determine the difference between a pair of ts files     --- tsdiff ---
# $Id: tsdiff_jobdef 616 2009-05-29 22:21:17Z acrnrls $
#=======================================================================
#     keyword :: tsdiff
# description :: Difference of time series files
#
# Larry Solheim  ...Mar,2008

 set -a
 . betapath2

#  * ........................... Parmsub Parameters ............................

 jobname=tsdiff ; time="1800" ; memory="1000mb"

 # bail is a simple error exit routine
 bail(){
   echo "tsdiff: "$1
   echo " " >> haltit
   exit 1
 }

 nextjob=on
 noprint=on

 # RUNPATH may be set if desired
 RUNPATH=$RUNPATH

 # It is often more efficient to set CCRNTMP = $RUNPATH
 CCRNTMP=$CCRNTMP

 # Alternate path to a directory where .queue/.crawork will be found
 JHOME=''

 if [ -n "$JHOME" -a x"$JHOME" != x"$HOME" ]; then
   # Allow optional reset of DATAPATH/RUNPATH
   JHOME_DATA=''
   DATAPATH=${JHOME_DATA:=$DATAPATH}
   RUNPATH=${JHOME_DATA:=$RUNPATH}
   # Allow optional reset of CCRNTMP
   JHOME_RUN=''
   CCRNTMP=${JHOME_RUN:=$CCRNTMP}
 fi

 # These variables are set when the job string is created
 run_start_year=NotSet
 run_start_month=NotSet
 run_stop_year=NotSet
 run_stop_month=NotSet
 current_year=NotSet
 current_month=NotSet
 previous_year=NotSet
 previous_month=NotSet
 next_year=NotSet
 next_month=NotSet

 year=yyy; mon=mm   # memory99=1

 runid="job000"; uxxx='uxxx'; tsdiff_uxxx=$uxxx;
 tsdiff_prefix="${tsdiff_uxxx}_${runid}"   # memory99=1
 tsdiff_prefix_=${tsdiff_prefix}_          # memory99=1
 crawork="${runid}_job"; username="acrnxxx"; user="XXX";

 tsdiff_filea=''
 tsdiff_fileb=''
 tsdiff_save=''

  # <<INSERT>> any user supplied variable definitions here.

#  * ............................. Deck Definition .............................

 . tsdiff.dk

#end_of_job
