We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20ff3ae commit fac2aceCopy full SHA for fac2ace
tests/grib_element.sh
@@ -54,5 +54,24 @@ set -e
54
grep -q "Invalid element.*Value must be between 0 and 95" $tempText
55
56
57
+# Access a double array
58
+input=$ECCODES_SAMPLES_PATH/sh_ml_grib2.tmpl
59
+cat > $tempFilt <<EOF
60
+ meta elemZ element(values, -1);
61
+ print "Last value as a double = [elemZ:d]";
62
+EOF
63
+${tools_dir}/grib_filter $tempFilt $input
64
+
65
66
+ meta badElem element(values, 100000);
67
+ print "[badElem:d]";
68
69
+set +e
70
71
+status=$?
72
+set -e
73
+[ $status -ne 0 ]
74
75
76
# Clean up
77
rm -f $tempRef $tempText $tempFilt
0 commit comments