Ticket #376: test1.sh

File test1.sh, 3.1 KB (added by Ian Culverwell, 10 years ago)
Line 
1#/usr/bin/ksh
2#
3# Script to test effect of changing CO to C0 for COSMIC IDs in
4# ropp_io/bufr/roppbufrcodes.nl and ropp_io/bufr/convertcodes.f90.
5# Ref #376.
6#
7# IDC, 25/7/2014.
8#
9
10IFILE0=ucar_test.nc
11
12
13# -------------------
14# Cntl: ROPP6.1 ifort
15# -------------------
16
17NLFILE=roppbufrcodes_old.nl
18
19TOOL=ropp_io/tools/ucar2ropp
20
21EXEC=/data/nwp1/idculv/ROPP/ropp_src/branches/dev/Share/ROPP61_prototype/$TOOL
22
23IFILE=$IFILE0
24
25OFILE=`echo $IFILE |sed -es/'.nc'/'_cntl.nc'/`
26
27TFILE=`echo $IFILE |sed -es/'.nc'/'_cntl.out'/`
28
29echo "cp $NLFILE /data/nwp1/idculv/ROPP/data/bufr/roppbufrcodes.nl > $TFILE"
30echo "cp $NLFILE /data/nwp1/idculv/ROPP/data/bufr/roppbufrcodes.nl" > $TFILE
31 cp $NLFILE /data/nwp1/idculv/ROPP/data/bufr/roppbufrcodes.nl >> $TFILE
32
33echo "$EXEC $IFILE -o $OFILE -d >> $TFILE"
34echo "$EXEC $IFILE -o $OFILE -d" >> $TFILE
35 $EXEC $IFILE -o $OFILE -d >> $TFILE
36
37echo "ncdump -h $IFILE |grep fileStamp >> $TFILE"
38echo "ncdump -h $IFILE |grep fileStamp" >> $TFILE
39 ncdump -h $IFILE |grep fileStamp >> $TFILE
40
41echo "ncks -H -vleo_id $OFILE >> $TFILE"
42echo "ncks -H -vleo_id $OFILE" >> $TFILE
43 ncks -H -vleo_id $OFILE >> $TFILE
44
45
46TOOL=ropp_io/tools/ropp2bufr
47
48EXEC=/data/nwp1/idculv/ROPP/ropp_src/branches/dev/Share/ROPP61_prototype/$TOOL
49
50IFILE=$OFILE
51
52OFILE=`echo $IFILE |sed -es/'.nc'/'.bufr'/`
53
54echo "$EXEC $IFILE -o $OFILE -d >> $TFILE"
55echo "$EXEC $IFILE -o $OFILE -d" >> $TFILE
56 $EXEC $IFILE -o $OFILE -d >> $TFILE
57
58
59echo "$ROPP_ROOT/ifort/bin/decbufr -d $OFILE |grep SATELLITE >> $TFILE"
60echo "$ROPP_ROOT/ifort/bin/decbufr -d $OFILE |grep SATELLITE" >> $TFILE
61 $ROPP_ROOT/ifort/bin/decbufr -d $OFILE |grep SATELLITE >> $TFILE
62
63
64# --------------
65# Test1: ROPP8.0
66# --------------
67
68NLFILE=roppbufrcodes_new.nl
69
70TOOL=ropp_io/tools/ucar2ropp
71
72EXEC=/data/nwp1/idculv/ROPP/ropp_src/branches/dev/Share/ROPP80_prototype/$TOOL
73
74IFILE=$IFILE0
75
76OFILE=`echo $IFILE |sed -es/'.nc'/'_test.nc'/`
77
78TFILE=`echo $IFILE |sed -es/'.nc'/'_test.out'/`
79
80echo "cp $NLFILE /data/nwp1/idculv/ROPP/data/bufr/roppbufrcodes.nl > $TFILE"
81echo "cp $NLFILE /data/nwp1/idculv/ROPP/data/bufr/roppbufrcodes.nl" > $TFILE
82 cp $NLFILE /data/nwp1/idculv/ROPP/data/bufr/roppbufrcodes.nl >> $TFILE
83
84echo "$EXEC $IFILE -o $OFILE -d >> $TFILE"
85echo "$EXEC $IFILE -o $OFILE -d" >> $TFILE
86 $EXEC $IFILE -o $OFILE -d >> $TFILE
87
88echo "ncdump -h $IFILE |grep fileStamp >> $TFILE"
89echo "ncdump -h $IFILE |grep fileStamp" >> $TFILE
90 ncdump -h $IFILE |grep fileStamp >> $TFILE
91
92echo "ncks -H -vleo_id $OFILE >> $TFILE"
93echo "ncks -H -vleo_id $OFILE" >> $TFILE
94 ncks -H -vleo_id $OFILE >> $TFILE
95
96TOOL=ropp_io/tools/ropp2bufr
97
98EXEC=/data/nwp1/idculv/ROPP/ropp_src/branches/dev/Share/ROPP80_prototype/$TOOL
99
100IFILE=$OFILE
101
102OFILE=`echo $IFILE |sed -es/'.nc'/'.bufr'/`
103
104echo "$EXEC $IFILE -o $OFILE -d >> $TFILE"
105echo "$EXEC $IFILE -o $OFILE -d" >> $TFILE
106 $EXEC $IFILE -o $OFILE -d >> $TFILE
107
108
109echo "$ROPP_ROOT/ifort/bin/decbufr -d $OFILE |grep SATELLITE >> $TFILE"
110echo "$ROPP_ROOT/ifort/bin/decbufr -d $OFILE |grep SATELLITE" >> $TFILE
111 $ROPP_ROOT/ifort/bin/decbufr -d $OFILE |grep SATELLITE >> $TFILE
112