Commit ee859ec4 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

gribapiGetValidityDateTime: check timeRangeIndicator for editionNumber = 1

parent 02800575
......@@ -3,6 +3,10 @@
* Version 1.6.2 released
* using CGRIBEX library version 1.6.2
2013-08-09 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* gribapiGetValidityDateTime: check timeRangeIndicator for editionNumber =1 (bug fix)
2013-07-16 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* netCDF: added support for zaxis attribute: positive
......
......@@ -301,6 +301,10 @@ int gribapiGetValidityDateTime(grib_handle *gh, int *vdate, int *vtime)
{
GRIB_CHECK(grib_get_long(gh, "significanceOfReferenceTime", &sigofrtime), 0);
}
else
{
GRIB_CHECK(grib_get_long(gh, "timeRangeIndicator", &sigofrtime), 0);
}
if ( sigofrtime == 3 )
{
......@@ -1192,7 +1196,7 @@ int gribapiScanTimestep1(stream_t * streamptr)
gribapiGetValidityDateTime(gh, &vdate, &vtime);
/*
printf("%d %d %d.%d.%d %d\n", vdate, vtime, pnum, pcat, pdis, leveltype);
printf("%d %d %d\n", vdate, vtime, leveltype);
*/
if ( lieee )
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment