Examples: add check for output GRIB
. ./include.sh
+tempGrib="out_surface_level.grib2"
+
+# Input and output GRIB files are hard coded in the example
${examples_dir}/c_grib_set_missing
-rm -f out_surface_level.grib2
+
+# Check the keys have been set to MISSING
+sf=`${tools_dir}/grib_get -p scaleFactorOfFirstFixedSurface $tempGrib`
+[ "$sf" = "MISSING" ]
+sf=`${tools_dir}/grib_get -p scaledValueOfFirstFixedSurface $tempGrib`
+[ "$sf" = "MISSING" ]
+
+rm -f $tempGrib
