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
3acc3352
Commit
3acc3352
authored
Feb 12, 2007
by
Uwe Schulzweida
Browse files
grbDefTime: change to absolute time axis if value < 0
parent
da731c0b
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
3acc3352
2007-0
1
-?? Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
2007-0
2
-?? Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* using GRIB library version 1.0.5
* grbDefTime: change to absolute time axis if value < 0
* grbDefGrid: change generic grid to lonlat grid
* grbScanTimestep: bug fix for unsorted codes
* LOCK/UNLOCK around _init_pointer
...
...
src/stream_grb.c
View file @
3acc3352
...
...
@@ -1635,12 +1635,12 @@ void grbDefTime(int *isec1, int date, int time, int numavg, int timeID)
hour
=
time
/
100
;
minute
=
time
-
hour
*
100
;
/*
printf("date time %d %d\n", date, time);
printf("date time %d %d
%g
\n", date, time
, value
);
printf("year %d, month %d, day %d, hour %d, minute %d\n", year, month, day, hour, minute);
*/
InvCalendar
(
year
,
month
,
day
,
hour
,
minute
,
0
.
0
,
tunit
,
&
value
);
if
(
value
>
255
)
timetype
=
TAXIS_ABSOLUTE
;
if
(
value
<
0
||
value
>
255
)
timetype
=
TAXIS_ABSOLUTE
;
ISEC1_TimeRange
=
0
;
ISEC1_TimePeriod1
=
(
int
)
value
;
...
...
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