mirror of https://github.com/ecmwf/eccodes.git
ECC-992: Set upper limit to 1e6
This commit is contained in:
parent
a918e9fa6e
commit
935a881f42
|
@ -2047,8 +2047,8 @@ int grib_util_grib_data_quality_check(grib_handle* h, double val)
|
|||
char shortName[256]={0,};
|
||||
size_t len = sizeof(shortName);
|
||||
|
||||
/*const double MIN_FIELD_VALUE_ALLOWED = -2e7;*/
|
||||
const double MAX_FIELD_VALUE_ALLOWED = +2e7;
|
||||
/* const double MIN_FIELD_VALUE_ALLOWED = -1e6; */
|
||||
const double MAX_FIELD_VALUE_ALLOWED = +1e6;
|
||||
|
||||
if (val > MAX_FIELD_VALUE_ALLOWED) {
|
||||
if (grib_get_long(h, "paramId", ¶mId) == GRIB_SUCCESS &&
|
||||
|
|
Loading…
Reference in New Issue