eccodes/examples/python/bufr_encode_flight.sh

26 lines
562 B
Bash
Raw Normal View History

#!/bin/sh
. ./include.sh
#-----------------------------------------------------
# Create a BUFR from flight data
#----------------------------------------------------
label="bufr_encode_flight_p"
bufr_in=${data_dir}"/bufr/syno_1.bufr"
csv_in="flight_data.csv"
fBufrTmp=${label}.tmp.bufr
REDIRECT=/dev/null
2015-11-11 10:30:40 +00:00
$PYTHON $examples_src/bufr_encode_flight.py $csv_in $bufr_in $fBufrTmp
# Make sure output is OK
2017-02-03 14:21:24 +00:00
${tools_dir}/bufr_dump $fBufrTmp > $REDIRECT
2017-02-03 14:21:24 +00:00
numSubsets=`${tools_dir}/bufr_get -p numberOfSubsets $fBufrTmp`
[ "$numSubsets" = "185" ]
rm -f $fBufrTmp