Ticket #495: test1.sh

File test1.sh, 2.1 KB (added by Ian Culverwell, 7 years ago)

test1.sh

Line 
1#/usr/bin/ksh
2#
3# Script to compare ROPP9.0 and ROPP9.1 versions of ucar2ropp
4# on CDAAC Metop data
5#
6
7ulimit -S -s unlimited
8
9IFILE0=data/atmPhs_C001.2017.001.14.15.G08_0001.0001_nc
10IFILE0=data/atmPhs_MTPA.2017.001.00.04.G29_2016.0120_nc
11IFILE0=data/occ20160608_235011_M01_2260600399_N0023_XXXX.nc
12
13#------------------------------------------------------
14#0. Cntl: ROPP9.0
15#------------------------------------------------------
16
17#if false ; then # bypass the control
18
19EXEC_DIR=$ROPP_ROOT/ropp_src/branches/dev/Share/ROPP90_prototype/ropp_io/tools
20
21TOOL=ucar2ropp ; EXEC=$EXEC_DIR/$TOOL
22
23IFILE=$IFILE0
24
25OFILE=$(echo $IFILE0 |sed -es/'.nc'/'_cntl1.nc'/)
26
27TFILE=$(echo $IFILE0 |sed -es/'.nc'/'_cntl1.out'/) ; rm -f $TFILE
28
29echo "$EXEC $IFILE -o $OFILE -d >> $TFILE 2>&1"
30 $EXEC $IFILE -o $OFILE -d >> $TFILE 2>&1
31
32
33EXEC_DIR=$ROPP_ROOT/ropp_src/branches/dev/Share/ROPP90_prototype/ropp_pp/tools
34
35TOOL=ropp_pp_occ_tool ; EXEC=$EXEC_DIR/$TOOL
36
37IFILE=$OFILE
38
39CFILE=data/gras_pp.cf
40
41MFILE=data/MSIS_coeff.nc
42
43OFILE=$(echo $IFILE0 |sed -es/'.nc'/'_occ_cntl1.nc'/)
44
45echo "$EXEC $IFILE -c $CFILE -mfile $MFILE -o $OFILE -d >> $TFILE"
46 $EXEC $IFILE -c $CFILE -mfile $MFILE -o $OFILE -d >> $TFILE
47
48#fi # bypass the control
49
50#------------------------------------------------------
51#1. Test: ROPP9.1
52#------------------------------------------------------
53
54#if false ; then # bypass the test
55
56EXEC_DIR=$ROPP_ROOT/ropp_src/branches/dev/Share/ROPP91_prototype/ropp_io/tools
57
58TOOL=ucar2ropp ; EXEC=$EXEC_DIR/$TOOL
59
60IFILE=$IFILE0
61
62OFILE=$(echo $IFILE0 |sed -es/'.nc'/'_test1.nc'/)
63
64TFILE=$(echo $IFILE0 |sed -es/'.nc'/'_test1.out'/) ; rm -f $TFILE
65
66echo "$EXEC $IFILE -o $OFILE -d >> $TFILE 2>&1"
67 $EXEC $IFILE -o $OFILE -d >> $TFILE 2>&1
68
69EXEC_DIR=$ROPP_ROOT/ropp_src/branches/dev/Share/ROPP91_prototype/ropp_pp/tools
70
71TOOL=ropp_pp_occ_tool ; EXEC=$EXEC_DIR/$TOOL
72
73IFILE=$OFILE
74
75CFILE=data/gras_pp.cf
76
77MFILE=data/MSIS_coeff.nc
78
79OFILE=$(echo $IFILE0 |sed -es/'.nc'/'_occ_test1.nc'/)
80
81echo "$EXEC $IFILE -c $CFILE -mfile $MFILE -o $OFILE -d >> $TFILE"
82 $EXEC $IFILE -c $CFILE -mfile $MFILE -o $OFILE -d >> $TFILE
83
84#fi # bypass the test