Commit 652dcbf0 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

cdtInqContents: set default time units to DAYS

parent e96493b9
......@@ -5831,7 +5831,14 @@ int cdfInqContents(int streamID)
if ( streamptr->tsteps[0].taxis.type == TAXIS_RELATIVE )
taxisID = taxisCreate(TAXIS_RELATIVE);
else
taxisID = taxisCreate(TAXIS_ABSOLUTE);
{
taxisID = taxisCreate(TAXIS_ABSOLUTE);
if ( !timehasunits )
{
taxisDefTunit(taxisID, TUNIT_DAY);
streamptr->tsteps[0].taxis.unit = TUNIT_DAY;
}
}
if ( calendar != UNDEFID )
{
......
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