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
31b08ffe
Commit
31b08ffe
authored
Apr 13, 2010
by
Uwe Schulzweida
Browse files
cgribexDefTime: bug fix for GRIB time range 10
parent
bdccbda7
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
31b08ffe
2010-04-13 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* cgribexDefTime: bug fix for GRIB time range 10
2010-04-09 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* added support for GRIB time unit 3hours and 6hours [request: Jaison-Thomas Ambadan]
...
...
src/stream_cgribex.c
View file @
31b08ffe
...
...
@@ -1550,7 +1550,7 @@ int cgribexDefTimerange(int tsteptype, int factor, int calendar,
case
TSTEP_ACCUM
:
timerange
=
4
;
ip1
=
0
;
ip2
=
ip
;
break
;
case
TSTEP_DIFF
:
timerange
=
5
;
ip1
=
0
;
ip2
=
ip
;
break
;
case
TSTEP_INSTANT3
:
default:
timerange
=
10
;
ip1
=
ip
;
ip2
=
0
;
break
;
default:
timerange
=
10
;
ip1
=
ip
/
256
;
ip2
=
ip
%
256
;
break
;
}
}
...
...
@@ -1642,11 +1642,13 @@ void cgribexDefTime(int *isec1, int vdate, int vtime, int tsteptype, int numavg,
{
timetype
=
TAXIS_ABSOLUTE
;
}
/*
else if ( timerange == 10 )
{
if ( ip1 < 0 || ip1 > 0xFFFF ) timetype = TAXIS_ABSOLUTE;
if ( ip2 < 0 || ip2 > 0xFFFF ) timetype = TAXIS_ABSOLUTE;
}
*/
else
{
if
(
ip1
<
0
||
ip1
>
0xFF
)
timetype
=
TAXIS_ABSOLUTE
;
...
...
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