You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 17 Next »

DESCRIPTION

Apply the rules defined in rules_file to each grib message in the grib files provided as arguments.

USAGE

grib_filter [options] rules_file grib_file grib_file ...

OPTIONS


-f

Force. Force the execution not to fail on error.


-o output_grib_file

Output grib is written to output_grib_file. If an output grib file is required and -o is not used, the output grib is written to filtered.out


-M

Multi-field support off. Turn off support for multiple fields in single grib message.


-V

Version.


-g

Copy GTS header.


-G

GRIBEX compatibility mode.


-T T | B | A

Message type. T->GTS, B->BUFR, A->Any (Experimental). The input file is interpreted according to the message type.


-7

Does not fail when the message has wrong length


-v

Verbose.

grib_filter examples

  1. The grib_filter processes sequentially all grib messages contained in the input files and applies the rules to each one of them. \n Input messages can be written to the output by using the "write" statement. The write statement can be parameterised so that output is sent to multiple files depending on key values used in the output file name. \n If we write a rules_file containing the only statement:\n \n

    >write "../data/split/[centre]_[date]_[dataType]_[levelType].grib[editionNumber]";
  • No labels