1 | #/usr/bin/ksh
|
---|
2 | #
|
---|
3 | # Script to test the -l option to eum2ropp, by emulating Axel's studies.
|
---|
4 | #
|
---|
5 |
|
---|
6 | DIR=/data/nwp1/idculv/ROPP/ropp_src/branches/dev/Share/ROPP81_prototype/ropp_io/tools
|
---|
7 |
|
---|
8 | IFILE0=data/GRAS_1B_M02_20080701000214Z_20080701000329Z_R_O_20150413081448Z_G19_NN.nc
|
---|
9 |
|
---|
10 | input=$IFILE0
|
---|
11 |
|
---|
12 |
|
---|
13 |
|
---|
14 | # run with -l to netCDF
|
---|
15 | output1="eum2ropp_l1a.nc"
|
---|
16 | echo "Generating netCDF file with level 1a content: " $output1
|
---|
17 | $DIR/eum2ropp -l $input -o $output1 > /dev/null
|
---|
18 | echo "r_leo from eum2ropp -l:"
|
---|
19 | ncdump -h $output1 | grep 'r_leo:reference_frame'
|
---|
20 | ncks -H -Q -ddim_lev1a,0 -vr_leo $output1
|
---|
21 | echo ""
|
---|
22 | echo ""
|
---|
23 |
|
---|
24 | # run without to netCDF
|
---|
25 | output2="eum2ropp_l1b.nc"
|
---|
26 | echo "Generating netCDF file without level 1a content: " $output1
|
---|
27 | $DIR/eum2ropp $input -o $output2 > /dev/null
|
---|
28 | echo "r_leo from eum2ropp:"
|
---|
29 | ncdump -h $output2 | grep 'r_leo:reference_frame'
|
---|
30 | ncks -H -Q -ddim_lev1a,0 -vr_leo $output2
|
---|
31 | echo ""
|
---|
32 | echo ""
|
---|
33 |
|
---|
34 |
|
---|
35 |
|
---|
36 | # generate bufr from the 2
|
---|
37 | output3="eum2ropp_l1a.nc.bufr"
|
---|
38 | echo "Generating BUFR file from ROPP file with level 1a content: " $output3
|
---|
39 | $DIR/ropp2bufr $output1 -o $output3 > /dev/null
|
---|
40 | echo "r_leo from eum2ropp -l | ropp2bufr:"
|
---|
41 | $ROPP_ROOT/gfortran/bin/decbufr -d $output3 | grep 'IN DIRECTION' | head -3
|
---|
42 | echo ""
|
---|
43 | echo ""
|
---|
44 |
|
---|
45 | output4="eum2ropp_l1b.nc.bufr"
|
---|
46 | echo "Generating BUFR file from ROPP file without level 1a content: " $output4
|
---|
47 | $DIR/ropp2bufr $output2 -o $output4 > /dev/null
|
---|
48 | echo "r_leo from eum2ropp | ropp2bufr:"
|
---|
49 | $ROPP_ROOT/gfortran/bin/decbufr -d $output4 | grep 'IN DIRECTION' | head -3
|
---|
50 | echo ""
|
---|
51 | echo ""
|
---|
52 |
|
---|
53 |
|
---|
54 |
|
---|
55 | # go back to netcdf with the 2
|
---|
56 | output5="eum2ropp_l1a.nc.bufr.nc"
|
---|
57 | echo "Generating netCDF file from BUFR file with level 1a content: " $output5
|
---|
58 | $DIR/bufr2ropp $output3 -o $output5 > /dev/null
|
---|
59 | echo "r_leo from eum2ropp -l | ropp2bufr | bufr2ropp:"
|
---|
60 | ncdump -h $output5 | grep 'r_leo:reference_frame'
|
---|
61 | ncks -H -Q -ddim_lev1a,0 -vr_leo $output5
|
---|
62 | echo ""
|
---|
63 | echo ""
|
---|
64 |
|
---|
65 | output6="eum2ropp_l1b.nc.bufr.nc"
|
---|
66 | echo "Generating BUFR file from ROPP file without level 1a content: " $output6
|
---|
67 | $DIR/bufr2ropp $output4 -o $output6 > /dev/null
|
---|
68 | echo "r_leo from eum2ropp | ropp2bufr | bufr2ropp:"
|
---|
69 | ncdump -h $output6 | grep 'r_leo:reference_frame'
|
---|
70 | ncks -H -Q -ddim_lev1a,0 -vr_leo $output6
|
---|
71 | echo ""
|
---|
72 | echo ""
|
---|
73 |
|
---|
74 |
|
---|
75 |
|
---|
76 |
|
---|
77 |
|
---|
78 |
|
---|
79 |
|
---|
80 | echo "**** Axel's equivalent output ***"
|
---|
81 |
|
---|
82 | # show r_leo of the two
|
---|
83 | echo "r_leo when going with level 1a:"
|
---|
84 | ncdump -v r_leo $output5 | tail -5
|
---|
85 | echo ""
|
---|
86 | echo ""
|
---|
87 |
|
---|
88 | # show r_leo of the two
|
---|
89 | echo "r_leo when going without level 1a:"
|
---|
90 | ncdump -v r_leo $output6 | tail -5
|
---|
91 |
|
---|