Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
d183ab62
Commit
d183ab62
authored
Mar 24, 2014
by
Uwe Schulzweida
Browse files
gribapiDefDateTimeRel: set vdate to rdate for time invariant fields [Bug #4641]
parent
d318efa5
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
d183ab62
...
...
@@ -3,6 +3,10 @@
* Version 1.6.4 released
* using CGRIBEX library version 1.6.4
2014-03-24 Uwe Schulzweida
* gribapiDefDateTimeRel: set vdate to rdate for time invariant fields [Bug #4641]
2014-03-20 Uwe Schulzweida
* netCDF4: changed default file name suffix from nc4 to nc
...
...
src/stream_gribapi.c
View file @
d183ab62
...
...
@@ -2185,6 +2185,8 @@ int gribapiDefDateTimeRel(int editionNumber, grib_handle *gh, int rdate, int rti
cdiDecodeTime
(
rtime
,
&
hour
,
&
minute
,
&
second
);
encode_juldaysec
(
calendar
,
year
,
month
,
day
,
hour
,
minute
,
second
,
&
julday1
,
&
secofday1
);
if
(
vdate
==
0
&&
vtime
==
0
)
{
vdate
=
rdate
;
vtime
=
rtime
;
}
cdiDecodeDate
(
vdate
,
&
year
,
&
month
,
&
day
);
cdiDecodeTime
(
vtime
,
&
hour
,
&
minute
,
&
second
);
encode_juldaysec
(
calendar
,
year
,
month
,
day
,
hour
,
minute
,
second
,
&
julday2
,
&
secofday2
);
...
...
@@ -2448,10 +2450,10 @@ void gribapiDefGrid(int editionNumber, grib_handle *gh, int gridID, int ljpeg, i
*/
}
/*
if ( ISEC2_NumLon > 1 && ISEC2_NumLat == 1 )
if ( ISEC2_NumLon > 1 && ISEC2_NumLat == 1 )
if ( ISEC2_LonIncr != 0 && ISEC2_LatIncr == 0 ) ISEC2_LatIncr = ISEC2_LonIncr;
if ( ISEC2_NumLon == 1 && ISEC2_NumLat > 1 )
if ( ISEC2_NumLon == 1 && ISEC2_NumLat > 1 )
if ( ISEC2_LonIncr == 0 && ISEC2_LatIncr != 0 ) ISEC2_LonIncr = ISEC2_LatIncr;
if ( ISEC2_LatIncr == 0 || ISEC2_LonIncr == 0 )
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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