Ticket #449: test_invert.sh

File test_invert.sh, 1.6 KB (added by Ian Culverwell, 8 years ago)

test_invert.sh

Line 
1#/usr/bin/ksh
2#
3# Script to examine effect of changing ropp_pp output from
4#
5# output_tdry
6#
7# to
8#
9# output_lev1a
10# output_lev1b
11# output_lev2a
12#
13
14TOOL=ropp_pp_invert_tool
15
16#IFILE0=IT-PP-02.nc
17IFILE0=IT-PP-02_prof1.nc
18
19
20#0. Cntl: ROPP8.1 ropp_pp_invert
21#-------------------------------
22
23EXEC=/net/data/nwp1/idculv/ROPP/ropp_src/branches/dev/Share/ROPP81_prototype/ropp_pp/tools/$TOOL
24
25IFILE=$IFILE0
26
27MFILE=MSIS_coeff.nc
28
29CFILE=grassaf_invert_cntl.cf
30
31OFILE=`echo $IFILE0 |sed -es/'.nc'/'_cntl.nc'/`
32
33TFILE=`echo $IFILE0 |sed -es/'.nc'/'_cntl.out'/`
34
35echo "$EXEC $IFILE -o $OFILE -mfile $MFILE -c $CFILE -m GMSIS -d > $TFILE 2>&1"
36# $EXEC $IFILE -o $OFILE -mfile $MFILE -c $CFILE -m GMSIS -d > $TFILE 2>&1
37
38echo "ncdump -h $OFILE > $(echo $OFILE |sed -es/'.nc'/'.nd'/) "
39# ncdump -h $OFILE > $(echo $OFILE |sed -es/'.nc'/'.nd'/)
40
41
42#1. Test1: ROPP9.0 ropp_pp_invert
43#--------------------------------
44
45EXEC=/net/data/nwp1/idculv/ROPP/ropp_src/branches/dev/Share/ROPP90_prototype/ropp_pp/tools/$TOOL
46
47IFILE=$IFILE0
48
49MFILE=MSIS_coeff.nc
50
51for i in 0 1 ; do
52#i=0
53for j in 0 1 ; do
54#j=0
55for k in 0 1 ; do
56#k=0
57for l in 0 1 ; do
58
59CFILE=grassaf_invert_test1_${i}${j}${k}${l}.cf
60
61OFILE=`echo $IFILE0 |sed -es/'.nc'/"_test1_${i}${j}${k}${l}.nc"/`
62
63TFILE=`echo $IFILE0 |sed -es/'.nc'/"_test1_${i}${j}${k}${l}.out"/`
64
65echo "$EXEC $IFILE -o $OFILE -mfile $MFILE -c $CFILE -m GMSIS -d > $TFILE 2>&1"
66 $EXEC $IFILE -o $OFILE -mfile $MFILE -c $CFILE -m GMSIS -d > $TFILE 2>&1
67
68
69echo "ncdump -h $OFILE > $(echo $OFILE |sed -es/'.nc'/'.nd'/) "
70 ncdump -h $OFILE > $(echo $OFILE |sed -es/'.nc'/'.nd'/)
71
72done
73done
74done
75done