#!/bin/ksh
################################################################################
####  UNIX Script Documentation Block
#                      .                                             .
# Script name:         envir.sh
# Script description:  Sets all environment variables for EnsDA run
#
# Author:        Milija Zupanski   Org: CIRA/CSU     Date: 1999-10-13
#
# Abstract: The script sets all environment variables for the EnsDA run
                                                                                                                                                             
#
# Script history log:
# 1999-06-23  Eric Rogers
# 1999-10-13  Milija Zupanski
# 2001-06-11  Milija Zupanski
# 2003-08-08  Milija Zupanski (ensda)
#
                                                                                                                                                             
set -x
                                                                                                                                                             
###############################################################
###  PARAMETERS TO BE SET BY THE USER ################
###############################################################
#
#  cycle_start_date = Start date of ensda experiment (forecast start date in the first cycle)
#
#  N_cycles         = Number of data assimilation cycles in current experiment
#
#  cycle_interval   = Time interval between subsequent cycles
#
#  length_cold_fcst = Length of cold-start forecast (validated at cycle_start_date)
#
#  FREE_FCST    = YES or NO .... fcst after data assimilation
#
#  print        = output print label
#
#  ens_size   = ensemble size (number of degrees of freedom)
#
#  bin_increment = Probability Density Function (PDF) bin increment
#                  (bin= [ i - bin_encrement/2., i + bin_interval/2.))
#
#  bin_range    = Max PDF bin value considered. The actual range is (-bin_range,0,+bin_range)
#
#  ioutmax      = Max number of minimization iterations
#
#  LBFGS_pairs  = number of pairs (y,s) used in BFGS minimization algorithm
#                (currently set to 1; if full BFGS algorithm, set to 'ioutmax-1')
#
#  minim_alg  = minimization algorithm type (5 characters length)
#                   .......... STEEP
#                   .......... CONJG
#                   .......... QUASN
#
# START = WARM or COLD
#                   ..........  WARM: start from previous ensemble cycle