Ticket #385: test.sh

File test.sh, 1.0 KB (added by Ian Culverwell, 9 years ago)

test.sh

Line 
1#/usr/bin/ksh
2#
3
4# bufr2ropp
5
6banner BUFR2ROPP
7
8
9BFILE=GRAS_1B_M02_20140101000329Z_20140101000436Z_R_O_20140709200600Z_G23_NN.bufr
10
11TFILE=$(echo $BFILE |sed -es/'bufr'/'decbufr'/)
12
13$ROPP_ROOT/ifort/bin/decbufr -d $BFILE > $TFILE
14
15
16NFILE=$(echo $BFILE |sed -es/'bufr'/'nc'/)
17
18TFILE=$(echo $BFILE |sed -es/'bufr'/'bufr2ropp'/)
19
20$ROPP_ROOT/ifort/bin/bufr2ropp $BFILE -o $NFILE -d > $TFILE
21
22
23TFILE=$(echo $BFILE |sed -es/'bufr'/'ncks'/)
24
25ncks -H -vpcd $NFILE > $TFILE
26
27
28
29
30# ropp2bufr
31
32banner ROPP2BUFR
33
34
35BFILE2=$(echo $BFILE |sed -es/'bufr'/'bufr2'/)
36
37TFILE=$(echo $BFILE |sed -es/'bufr'/'ropp2bufr'/)
38
39$ROPP_ROOT/ifort/bin/ropp2bufr $NFILE -o $BFILE2 -d > $TFILE
40
41
42TFILE=$(echo $BFILE |sed -es/'bufr'/'decbufr2'/)
43
44$ROPP_ROOT/ifort/bin/decbufr -d $BFILE2 > $TFILE
45
46
47
48# bufr2ropp again
49
50banner BUFR2ROPP2
51
52NFILE=$(echo $BFILE |sed -es/'bufr'/'nc2'/)
53
54TFILE=$(echo $BFILE |sed -es/'bufr'/'bufr2ropp2'/)
55
56$ROPP_ROOT/ifort/bin/bufr2ropp $BFILE2 -o $NFILE -d > $TFILE
57
58
59TFILE=$(echo $BFILE |sed -es/'bufr'/'ncks2'/)
60
61ncks -H -vpcd $NFILE > $TFILE
62
63