ECC-992: Limits update and add test for step

This commit is contained in:
Shahram Najm 2020-02-20 15:35:37 +00:00
parent 6dc79a4a78
commit 3ecd739af5
2 changed files with 14 additions and 2 deletions

View File

@ -70,8 +70,8 @@ concept param_value_min(default_min_val) {
170 = { paramId=228096; } 170 = { paramId=228096; }
170 = { paramId=228095; } 170 = { paramId=228095; }
0 = { paramId=43; } 0 = { paramId=43; }
-0.01 = { paramId=247; } -0.001 = { paramId=247; }
0 = { paramId=246; } -0.001 = { paramId=246; }
-0.1 = { paramId=133; } -0.1 = { paramId=133; }
43000 = { paramId=134; } 43000 = { paramId=134; }
0 = { paramId=173; } 0 = { paramId=173; }

View File

@ -122,6 +122,18 @@ set -e
[ $status -ne 0 ] [ $status -ne 0 ]
echo "Test limits with steps..."
# -----------------------------
input1=$ECCODES_SAMPLES_PATH/reduced_gg_pl_48_grib1.tmpl
# This sets the minimum to 1.1 but this should work for step=0
${tools_dir}/grib_set -s step=0,paramId=121,scaleValuesBy=1.1 $input1 $tempOut
# But it must fail when step > 0
set +e
${tools_dir}/grib_set -s step=6,paramId=121,scaleValuesBy=1.1 $input1 $tempOut
set -e
[ $status -ne 0 ]
echo "Override the defaults..." echo "Override the defaults..."
# ------------------------------ # ------------------------------