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 |
|
---|
10 | IFILE0=ucar_test.nc
|
---|
11 |
|
---|
12 |
|
---|
13 | # -------------------
|
---|
14 | # Cntl: ROPP6.1 ifort
|
---|
15 | # -------------------
|
---|
16 |
|
---|
17 | NLFILE=roppbufrcodes_old.nl
|
---|
18 |
|
---|
19 | TOOL=ropp_io/tools/ucar2ropp
|
---|
20 |
|
---|
21 | EXEC=/data/nwp1/idculv/ROPP/ropp_src/branches/dev/Share/ROPP61_prototype/$TOOL
|
---|
22 |
|
---|
23 | IFILE=$IFILE0
|
---|
24 |
|
---|
25 | OFILE=`echo $IFILE |sed -es/'.nc'/'_cntl.nc'/`
|
---|
26 |
|
---|
27 | TFILE=`echo $IFILE |sed -es/'.nc'/'_cntl.out'/`
|
---|
28 |
|
---|
29 | echo "cp $NLFILE /data/nwp1/idculv/ROPP/data/bufr/roppbufrcodes.nl > $TFILE"
|
---|
30 | echo "cp $NLFILE /data/nwp1/idculv/ROPP/data/bufr/roppbufrcodes.nl" > $TFILE
|
---|
31 | cp $NLFILE /data/nwp1/idculv/ROPP/data/bufr/roppbufrcodes.nl >> $TFILE
|
---|
32 |
|
---|
33 | echo "$EXEC $IFILE -o $OFILE -d >> $TFILE"
|
---|
34 | echo "$EXEC $IFILE -o $OFILE -d" >> $TFILE
|
---|
35 | $EXEC $IFILE -o $OFILE -d >> $TFILE
|
---|
36 |
|
---|
37 | echo "ncdump -h $IFILE |grep fileStamp >> $TFILE"
|
---|
38 | echo "ncdump -h $IFILE |grep fileStamp" >> $TFILE
|
---|
39 | ncdump -h $IFILE |grep fileStamp >> $TFILE
|
---|
40 |
|
---|
41 | echo "ncks -H -vleo_id $OFILE >> $TFILE"
|
---|
42 | echo "ncks -H -vleo_id $OFILE" >> $TFILE
|
---|
43 | ncks -H -vleo_id $OFILE >> $TFILE
|
---|
44 |
|
---|
45 |
|
---|
46 | TOOL=ropp_io/tools/ropp2bufr
|
---|
47 |
|
---|
48 | EXEC=/data/nwp1/idculv/ROPP/ropp_src/branches/dev/Share/ROPP61_prototype/$TOOL
|
---|
49 |
|
---|
50 | IFILE=$OFILE
|
---|
51 |
|
---|
52 | OFILE=`echo $IFILE |sed -es/'.nc'/'.bufr'/`
|
---|
53 |
|
---|
54 | echo "$EXEC $IFILE -o $OFILE -d >> $TFILE"
|
---|
55 | echo "$EXEC $IFILE -o $OFILE -d" >> $TFILE
|
---|
56 | $EXEC $IFILE -o $OFILE -d >> $TFILE
|
---|
57 |
|
---|
58 |
|
---|
59 | echo "$ROPP_ROOT/ifort/bin/decbufr -d $OFILE |grep SATELLITE >> $TFILE"
|
---|
60 | echo "$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 |
|
---|
68 | NLFILE=roppbufrcodes_new.nl
|
---|
69 |
|
---|
70 | TOOL=ropp_io/tools/ucar2ropp
|
---|
71 |
|
---|
72 | EXEC=/data/nwp1/idculv/ROPP/ropp_src/branches/dev/Share/ROPP80_prototype/$TOOL
|
---|
73 |
|
---|
74 | IFILE=$IFILE0
|
---|
75 |
|
---|
76 | OFILE=`echo $IFILE |sed -es/'.nc'/'_test.nc'/`
|
---|
77 |
|
---|
78 | TFILE=`echo $IFILE |sed -es/'.nc'/'_test.out'/`
|
---|
79 |
|
---|
80 | echo "cp $NLFILE /data/nwp1/idculv/ROPP/data/bufr/roppbufrcodes.nl > $TFILE"
|
---|
81 | echo "cp $NLFILE /data/nwp1/idculv/ROPP/data/bufr/roppbufrcodes.nl" > $TFILE
|
---|
82 | cp $NLFILE /data/nwp1/idculv/ROPP/data/bufr/roppbufrcodes.nl >> $TFILE
|
---|
83 |
|
---|
84 | echo "$EXEC $IFILE -o $OFILE -d >> $TFILE"
|
---|
85 | echo "$EXEC $IFILE -o $OFILE -d" >> $TFILE
|
---|
86 | $EXEC $IFILE -o $OFILE -d >> $TFILE
|
---|
87 |
|
---|
88 | echo "ncdump -h $IFILE |grep fileStamp >> $TFILE"
|
---|
89 | echo "ncdump -h $IFILE |grep fileStamp" >> $TFILE
|
---|
90 | ncdump -h $IFILE |grep fileStamp >> $TFILE
|
---|
91 |
|
---|
92 | echo "ncks -H -vleo_id $OFILE >> $TFILE"
|
---|
93 | echo "ncks -H -vleo_id $OFILE" >> $TFILE
|
---|
94 | ncks -H -vleo_id $OFILE >> $TFILE
|
---|
95 |
|
---|
96 | TOOL=ropp_io/tools/ropp2bufr
|
---|
97 |
|
---|
98 | EXEC=/data/nwp1/idculv/ROPP/ropp_src/branches/dev/Share/ROPP80_prototype/$TOOL
|
---|
99 |
|
---|
100 | IFILE=$OFILE
|
---|
101 |
|
---|
102 | OFILE=`echo $IFILE |sed -es/'.nc'/'.bufr'/`
|
---|
103 |
|
---|
104 | echo "$EXEC $IFILE -o $OFILE -d >> $TFILE"
|
---|
105 | echo "$EXEC $IFILE -o $OFILE -d" >> $TFILE
|
---|
106 | $EXEC $IFILE -o $OFILE -d >> $TFILE
|
---|
107 |
|
---|
108 |
|
---|
109 | echo "$ROPP_ROOT/ifort/bin/decbufr -d $OFILE |grep SATELLITE >> $TFILE"
|
---|
110 | echo "$ROPP_ROOT/ifort/bin/decbufr -d $OFILE |grep SATELLITE" >> $TFILE
|
---|
111 | $ROPP_ROOT/ifort/bin/decbufr -d $OFILE |grep SATELLITE >> $TFILE
|
---|
112 |
|
---|