Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
ee859ec4
Commit
ee859ec4
authored
Aug 09, 2013
by
Uwe Schulzweida
Browse files
gribapiGetValidityDateTime: check timeRangeIndicator for editionNumber = 1
parent
02800575
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
ee859ec4
...
...
@@ -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
...
...
src/stream_gribapi.c
View file @
ee859ec4
...
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment