diff --git a/definitions/param_limits.def b/definitions/param_limits.def index e04fb9053..b59c98662 100644 --- a/definitions/param_limits.def +++ b/definitions/param_limits.def @@ -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; } diff --git a/tests/grib_data_quality_checks.sh b/tests/grib_data_quality_checks.sh index b3a38c686..45c725f7b 100755 --- a/tests/grib_data_quality_checks.sh +++ b/tests/grib_data_quality_checks.sh @@ -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..." # ------------------------------