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

Compare with Current View Page History

« Previous Version 4 Next »

DESCRIPTION

Build an index file for a set of input grib files.

USAGE

grib_index_build [options] grib_file grib_file ...

OPTIONS


-f

Force. Force the execution not to fail on error.


-o output_index_file

Output is written to output_index_file. If an output index file is required and -o is not used, the output index is written to gribidx


-k key1,key2,...

Specify a list of keys to index on. By default the input files are indexed on the MARS keys.


-V

Version.


-T T | B | A

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


-M

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


-N

Do not compress index. By default the index is compressed to remove keys with only one value.

grib_index_build examples

  1. By default grib_index_build will index on the MARS keys.

     
    >  grib_index_build ../data/reduced*.grib1 ../data/regular*.grib1 ../data/reduced*.grib2
    


  2. To specify a custom list of keys to index on, use the -k option.

     
    >  grib_index_build -k paramId,dataDate ../data/reduced*.grib1 ../data/regular*.grib1 ../data/reduced*.grib2
    


  • No labels