Commit adddc8f9 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

stream_cdf: added find_leadtime()

parent ea5525c1
......@@ -6985,6 +6985,14 @@ int find_leadtime(int nvars, ncvar_t *ncvars)
for ( ncvarid = 0; ncvarid < nvars; ncvarid++ )
{
if ( ncvars[ncvarid].stdname[0] )
{
if ( strcmp(ncvars[ncvarid].stdname, "forecast_period") == 0 )
{
leadtime_id = ncvarid;
break;
}
}
}
return (leadtime_id);
......
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