Commit 2ecfa566 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

cgribexDefTime: added warning if time axis type changes.

parent a1da0caf
......@@ -1571,6 +1571,13 @@ void cgribexDefTime(int *isec1, int vdate, int vtime, int tsteptype, int numavg,
if ( ip2 < 0 || ip2 > 0xFF ) timetype = TAXIS_ABSOLUTE;
}
static bool lwarn = true;
if ( lwarn && timetype == TAXIS_ABSOLUTE )
{
lwarn = false;
Warning("Can't store forecast time %ld %d relative to %ld %d, converted to absolute time!", (long)vdate, vtime, (long)rdate, rtime);
}
ISEC1_TimeRange = timerange;
ISEC1_TimePeriod1 = ip1;
ISEC1_TimePeriod2 = ip2;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment