ECC-992: Set upper limit to 1e6

This commit is contained in:
Shahram Najm 2019-10-10 18:30:55 +01:00
parent a918e9fa6e
commit 935a881f42
1 changed files with 2 additions and 2 deletions

View File

@ -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", &paramId) == GRIB_SUCCESS &&