mirror of https://github.com/ecmwf/eccodes.git
ECC-567: codes_split_file test/docs
This commit is contained in:
parent
eb012451cc
commit
d2b674e0f3
|
@ -30,6 +30,10 @@ ${tools_dir}/grib_ls $temp_dir/mixed.grib_3
|
|||
total=`${tools_dir}/codes_count $temp_dir/mixed.grib_[1-3]`
|
||||
[ $total -eq 14 ]
|
||||
|
||||
cat $temp_dir/mixed.grib_[1-3] > temp
|
||||
${tools_dir}/grib_compare $input temp
|
||||
|
||||
|
||||
# Test 2: File with 248 messages
|
||||
# -----------------------------
|
||||
cp ${data_dir}/tigge_ecmwf.grib2 $temp_dir
|
||||
|
@ -38,6 +42,9 @@ ${tools_dir}/codes_split_file 10 $input
|
|||
total=`${tools_dir}/codes_count $temp_dir/tigge_ecmwf.grib2_[0-9]*`
|
||||
[ $total -eq 248 ]
|
||||
|
||||
cat $temp_dir/tigge_ecmwf.grib2_1 $temp_dir/tigge_ecmwf.grib2_[2-9] $temp_dir/tigge_ecmwf.grib2_10 > temp
|
||||
${tools_dir}/grib_compare $input temp
|
||||
|
||||
|
||||
# Clean up
|
||||
rm -fr $temp_dir
|
||||
|
|
|
@ -2,7 +2,7 @@ NAME codes_split_file
|
|||
|
||||
DESCRIPTION
|
||||
|
||||
Split an input file (GRIB, BUFR etc) into chunks roughly the same size. The files are named after the input with _1, _2 etc appended. This is much faster than grib_copy/bufr_copy.
|
||||
Split an input file (GRIB, BUFR etc) into chunks of roughly the same size. The output files are named input_1, input_2 etc. This is much faster than grib_copy/bufr_copy.
|
||||
|
||||
USAGE
|
||||
codes_split_file [-v] nchunks input
|
||||
|
|
Loading…
Reference in New Issue