mirror of https://github.com/ecmwf/eccodes.git
Added test for grib_index_build tool
This commit is contained in:
parent
865b881a01
commit
b46fc0ac03
|
@ -28,3 +28,11 @@ ${test_dir}/read_index ${infile} > index.out
|
|||
diff index.out ${data_dir}/index.ok
|
||||
|
||||
rm -f index.out out.gribidx
|
||||
|
||||
# test grib_index_build
|
||||
#
|
||||
tempIndex=temp.$$.ix
|
||||
${tools_dir}grib_index_build -o $tempIndex ${infile} >/dev/null
|
||||
${tools_dir}grib_dump -D ${tempIndex} > /dev/null
|
||||
|
||||
rm -f $tempIndex
|
||||
|
|
|
@ -25,13 +25,17 @@ char* default_keys = "mars";
|
|||
grib_option grib_options[]={
|
||||
/* {id, args, help}, on, command_line, value */
|
||||
{"f",0,0,0,1,0},
|
||||
{"o:",0,0,1,1,"gribidx"},
|
||||
{"o:","output_index_file",
|
||||
"\n\t\tOutput is written to output_index_file."
|
||||
"\n\t\tIf an output index file is required and -o is not used, the"
|
||||
" output index is written to gribidx\n",
|
||||
1,1,"gribidx"},
|
||||
{"k:",0,0,0,1,0},
|
||||
{"V",0,0,0,1,0},
|
||||
{"T:",0,0,0,1,0},
|
||||
{"M",0,0,0,1,0},
|
||||
{"N",0,"Do not compress index."
|
||||
"\n\t\tBy default the index is compressed to remove keys with only one value.\n",0,1,0}
|
||||
"\n\t\tBy default the index is compressed to remove keys with only one value.\n",0,1,0}
|
||||
};
|
||||
|
||||
int compress_index;
|
||||
|
|
Loading…
Reference in New Issue