eccodes/tools/bufr_copy.sh

18 lines
519 B
Bash
Raw Permalink Normal View History

#!/bin/sh
set -e
2015-03-19 14:26:59 +00:00
echo "-# To copy only the SYNOP messages from a file\\n"
echo "\verbatim"
echo "> bufr_copy -w dataCategory=0 in.bufr out.bufr"
echo "\endverbatim\\n"
2015-03-19 14:26:59 +00:00
echo "-# To copy only the non-SYNOP messages from a file\\n"
echo "\verbatim"
echo "> bufr_copy -w dataCategory!=0 in.bufr out.bufr"
echo "\endverbatim\\n"
2015-03-19 14:26:59 +00:00
echo "-# Use the square brackets to insert the value of a key in the name of the output file. \\n"
echo "\verbatim"
2017-02-10 11:00:11 +00:00
echo ">bufr_copy in.bufr 'out_[dataCategory].bufr' "
2015-03-19 14:26:59 +00:00
echo "\endverbatim\\n"