Skip to content

Commit

Permalink
Testing: grib_histogram
Browse files Browse the repository at this point in the history
  • Loading branch information
shahramn committed May 2, 2024
1 parent 99feb86 commit 13c04fc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/big2gribex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ if [ ! -x ${tools_dir}/big2gribex ]; then
exit 0
fi

set +e
${tools_dir}/big2gribex
status=$?
set -e
[ $status -ne 0 ]

${tools_dir}/big2gribex $data_dir/test.grib1 $tempGrib

# Clean up
Expand Down
12 changes: 12 additions & 0 deletions tests/grib_histogram.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,17 @@ tempOut=temp.$label.txt
${tools_dir}/grib_histogram $ECCODES_SAMPLES_PATH/GRIB1.tmpl > $tempOut
${tools_dir}/grib_histogram $ECCODES_SAMPLES_PATH/GRIB2.tmpl > $tempOut

${tools_dir}/grib_histogram -p step,shortName $ECCODES_SAMPLES_PATH/GRIB2.tmpl > $tempOut

# Something with a bitmap
input=$data_dir/reduced_latlon_surface.grib2
grib_check_key_equals $input numberOfMissing 98701
${tools_dir}/grib_histogram $input > $tempOut

# Skip
input=$data_dir/tigge_cf_ecmwf.grib2
${tools_dir}/grib_histogram -w level=925,shortName=gh $input > $tempOut


# Clean up
rm -f $tempOut

0 comments on commit 13c04fc

Please sign in to comment.