Commit 6df4ec57 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

GRIB2: remove unknown cfName

parent a8e71d38
......@@ -928,6 +928,7 @@ void gribapiAddRecord(stream_t * streamptr, int param, grib_handle *gh,
vlen = CDI_MAX_NAME;
status = grib_get_string(gh, "cfName", stdname, &vlen);
if ( status != 0 || vlen <= 1 ) stdname[0] = 0;
else if ( strncmp(stdname, "unknown", 7) == 0 ) stdname[0] = 0;
}
}
// fprintf(stderr, "param %d name %s %s %s\n", param, name, longname, units);
......
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