ECC-1206: tigge_check not failing for some wrong validityTime/validityDate

This commit is contained in:
Shahram Najm 2021-02-23 11:54:48 +00:00
parent 71d0c20198
commit 9f86f392bb
1 changed files with 10 additions and 14 deletions

View File

@ -381,6 +381,7 @@ static void check_validity_datetime(grib_handle* h)
long validityDate, validityTime;
/* Check only applies to accumulated, max etc. */
str_len = 100;
err = grib_get_string(h, "stepRange", stepRange, &str_len);
if (err) return;
@ -410,7 +411,6 @@ static void check_range(grib_handle* h,const parameter* p,double min,double max)
/* See ECC-437 */
if (!(get(h,"bitMapIndicator") == 0 && min == missing && max == missing)) {
if(min < p->min1 || min > p->min2)
{
printf("warning: %s, field %d [%s]: %s minimum value %g is not in [%g,%g]\n",file,field,param,
@ -429,7 +429,6 @@ static void check_range(grib_handle* h,const parameter* p,double min,double max)
printf(" => [%g,%g]\n",max < p->max1 ? max : p->max1, max > p->max2 ? max : p->max2);
warning++;
}
}
}
@ -806,7 +805,6 @@ static void statistical_process(grib_handle* h,const parameter* p,double min,dou
CHECK((get(h,"endStep") % 6) == 0); /* Every six hours */
}
if(get(h,"indicatorOfUnitForTimeRange") == 11)
{
/* Six hourly is OK */
@ -1400,8 +1398,6 @@ static void verify(grib_handle* h)
todo ?? now it's allowed in the code here!
if(!missing(h,"typeOfStatisticalProcessing"))
CHECK(ne(h,"stepRange",0));*/
}
void validate(const char* path)