1 | #/usr/bin/ksh
|
---|
2 | #
|
---|
3 | # Script to compare ROPP9.0 and ROPP9.1 versions of ucar2ropp
|
---|
4 | # on CDAAC Metop data
|
---|
5 | #
|
---|
6 |
|
---|
7 | ulimit -S -s unlimited
|
---|
8 |
|
---|
9 | IFILE0=data/atmPhs_C001.2017.001.14.15.G08_0001.0001_nc
|
---|
10 | IFILE0=data/atmPhs_MTPA.2017.001.00.04.G29_2016.0120_nc
|
---|
11 | IFILE0=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 |
|
---|
19 | EXEC_DIR=$ROPP_ROOT/ropp_src/branches/dev/Share/ROPP90_prototype/ropp_io/tools
|
---|
20 |
|
---|
21 | TOOL=ucar2ropp ; EXEC=$EXEC_DIR/$TOOL
|
---|
22 |
|
---|
23 | IFILE=$IFILE0
|
---|
24 |
|
---|
25 | OFILE=$(echo $IFILE0 |sed -es/'.nc'/'_cntl1.nc'/)
|
---|
26 |
|
---|
27 | TFILE=$(echo $IFILE0 |sed -es/'.nc'/'_cntl1.out'/) ; rm -f $TFILE
|
---|
28 |
|
---|
29 | echo "$EXEC $IFILE -o $OFILE -d >> $TFILE 2>&1"
|
---|
30 | $EXEC $IFILE -o $OFILE -d >> $TFILE 2>&1
|
---|
31 |
|
---|
32 |
|
---|
33 | EXEC_DIR=$ROPP_ROOT/ropp_src/branches/dev/Share/ROPP90_prototype/ropp_pp/tools
|
---|
34 |
|
---|
35 | TOOL=ropp_pp_occ_tool ; EXEC=$EXEC_DIR/$TOOL
|
---|
36 |
|
---|
37 | IFILE=$OFILE
|
---|
38 |
|
---|
39 | CFILE=data/gras_pp.cf
|
---|
40 |
|
---|
41 | MFILE=data/MSIS_coeff.nc
|
---|
42 |
|
---|
43 | OFILE=$(echo $IFILE0 |sed -es/'.nc'/'_occ_cntl1.nc'/)
|
---|
44 |
|
---|
45 | echo "$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 |
|
---|
56 | EXEC_DIR=$ROPP_ROOT/ropp_src/branches/dev/Share/ROPP91_prototype/ropp_io/tools
|
---|
57 |
|
---|
58 | TOOL=ucar2ropp ; EXEC=$EXEC_DIR/$TOOL
|
---|
59 |
|
---|
60 | IFILE=$IFILE0
|
---|
61 |
|
---|
62 | OFILE=$(echo $IFILE0 |sed -es/'.nc'/'_test1.nc'/)
|
---|
63 |
|
---|
64 | TFILE=$(echo $IFILE0 |sed -es/'.nc'/'_test1.out'/) ; rm -f $TFILE
|
---|
65 |
|
---|
66 | echo "$EXEC $IFILE -o $OFILE -d >> $TFILE 2>&1"
|
---|
67 | $EXEC $IFILE -o $OFILE -d >> $TFILE 2>&1
|
---|
68 |
|
---|
69 | EXEC_DIR=$ROPP_ROOT/ropp_src/branches/dev/Share/ROPP91_prototype/ropp_pp/tools
|
---|
70 |
|
---|
71 | TOOL=ropp_pp_occ_tool ; EXEC=$EXEC_DIR/$TOOL
|
---|
72 |
|
---|
73 | IFILE=$OFILE
|
---|
74 |
|
---|
75 | CFILE=data/gras_pp.cf
|
---|
76 |
|
---|
77 | MFILE=data/MSIS_coeff.nc
|
---|
78 |
|
---|
79 | OFILE=$(echo $IFILE0 |sed -es/'.nc'/'_occ_test1.nc'/)
|
---|
80 |
|
---|
81 | echo "$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
|
---|