mirror of https://github.com/ecmwf/eccodes.git
ECC-992: Limits update and add test for step
This commit is contained in:
parent
6dc79a4a78
commit
3ecd739af5
|
@ -70,8 +70,8 @@ concept param_value_min(default_min_val) {
|
|||
170 = { paramId=228096; }
|
||||
170 = { paramId=228095; }
|
||||
0 = { paramId=43; }
|
||||
-0.01 = { paramId=247; }
|
||||
0 = { paramId=246; }
|
||||
-0.001 = { paramId=247; }
|
||||
-0.001 = { paramId=246; }
|
||||
-0.1 = { paramId=133; }
|
||||
43000 = { paramId=134; }
|
||||
0 = { paramId=173; }
|
||||
|
|
|
@ -122,6 +122,18 @@ set -e
|
|||
[ $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..."
|
||||
# ------------------------------
|
||||
|
|
Loading…
Reference in New Issue