eccodes/data/bufr/make_bufrdc_ref.ksh

13 lines
350 B
Bash
Raw Normal View History

#!/bin/ksh
set -ex
2014-09-01 12:20:22 +00:00
base=/var/tmp/mac/p4/bufrdc/releases/000402/examples
decode=$base/bufr_decode_data
print_descriptors=$base/bufr_print_descriptors
for f in *.bufr
do
2014-09-01 12:20:22 +00:00
$decode -i $f | sed 's/MISSING/-1.00000000000000e+100/g' | sed -e '/ECMWF/,+8d' > $f.num.ref
#$print_descriptors -i $f | sed -e '/ECMWF/,+8d'| sed 's/ //g' > $f.desc.ref
done