Skip to content
Snippets Groups Projects
Commit 3acc3352 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

grbDefTime: change to absolute time axis if value < 0

parent da731c0b
No related branches found
No related tags found
No related merge requests found
2007-01-?? Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
2007-02-?? 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
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment