Commit 28d266d3 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

set default of rdate to vdate.

parent a14c3536
......@@ -1642,7 +1642,12 @@ void cdiStreamSetupVlist_(stream_t *streamptr, int vlistID)
case CDI_FILETYPE_NC5:
{
taxis_t *taxisptr = taxisPtr(taxisID);
if ( taxisptr->rdate == -1 ) taxisDefRdate(taxisID, 10101);
if ( taxisptr->rdate == -1 )
{
int vdate = taxisInqVdate(taxisID);
if ( vdate == 0 ) vdate = 10101;
taxisDefRdate(taxisID, vdate);
}
}
break;
#endif
......
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