#/usr/bin/ksh
#
# Script to examine OmA and OmB settings, as in ticket 430.
#

TOOL=ropp_1dvar_bangle             #bangle exec

OBS=IT-1DVAR-04_y.nc              #observations data
#OBS=IT-1DVAR-04_prof1_y.nc              #observations data

BACK=IT-1DVAR-04_b.nc        #background data
#BACK=IT-1DVAR-04_prof1_b.nc        #background data

BG_COV=IT-1DVAR-04_c.nc      #bg covariances

CONFIG=metoffice_bangle_1dvar.cf      #configuration file (obs_covar_method = VSFC, bg_covar_method = VSDC)

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

# Cntl: ROPP8.1 ifort = 300L

EXEC=/data/nwp1/idculv/ROPP/ropp_src/branches/dev/Share/ROPP81_prototype/ropp_1dvar/tools/$TOOL

IFILE0=$OBS
IFILE=$IFILE

OFILE=`echo $IFILE0 |sed -es/'.nc'/'_cntl.nc'/`

TFILE=`echo $IFILE0 |sed -es/'.nc'/'_cntl.out'/`

echo "$EXEC  -d  -y $OBS  -b $BACK  --bg-corr $BG_COV  -o $OFILE  -c $CONFIG  > $TFILE  2>&1"
      $EXEC  -d  -y $OBS  -b $BACK  --bg-corr $BG_COV  -o $OFILE  -c $CONFIG  > $TFILE  2>&1

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

# Test1: ROPP9.0 ifort = 300L

EXEC=/data/nwp1/idculv/ROPP/ropp_src/branches/dev/Share/ROPP90_prototype/ropp_1dvar/tools/$TOOL

IFILE0=$OBS
IFILE=$IFILE

OFILE=`echo $IFILE0 |sed -es/'.nc'/'_test1.nc'/`

TFILE=`echo $IFILE0 |sed -es/'.nc'/'_test1.out'/`

echo "$EXEC  -d  -y $OBS  -b $BACK  --bg-corr $BG_COV  -o $OFILE  -c $CONFIG  > $TFILE  2>&1"
      $EXEC  -d  -y $OBS  -b $BACK  --bg-corr $BG_COV  -o $OFILE  -c $CONFIG  > $TFILE  2>&1


