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