#!/bin/ksh +x
#************************#
#                        #
#     Get_Cls_PrsLev     #
#                        #
#************************#
#
if [ "${1}" = "-h" ]
then
  echo " "
  echo " Calculate the pressure layers (lt, mt, ut, st, bt, ct and ht) and"
  echo " the vertical modes distribuition by classes 0, 1, 2, 3 and 4"
  echo " for the reference case (csvm)"
  echo " "
  echo " Usage :"
  echo " ./Run_GClsPrs"
  echo " "
  echo " No Arguments"
  echo " "
  echo " Obs:"
  echo " lt : Lower Troposphere  : <= 1000  > 700 hPa"
  echo " mt : Middle Troposphere : <=  700  > 400 hPa"
  echo " ut : Upper Troposphere  : <=  400 >= 200 hPa"
  echo " st : Stratosphere       : <   200 >=  pt hPa"
  echo " bt : Botton Troposphere : <= 1000 >  500 hPa"
  echo " ct : Center Troposphere : <=  700 => 500 hPa"
  echo " ht : Hight Troposphere  :  <  500 >= 100 hPa"
  echo " "
exit
fi
#
dircfg='../../Config/'
. ${dircfg}Config_Dir
. ${dircfg}Reference_Case
#
rm -f ./NameList
#
set -x
cat << eot > ./NameList
 &GetClnml
  csvm=${csvm}
  Kmax=${Kmax}
  dirprs='${dirprscfg}',
  dirvmd='${dirvmdcfg}'
 /
eot
#
time ../bin/Get_Cls_PrsLev.bin
#
rm -f ./NameList
#
