Commit 9e6bd2ac authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

cdfInqHistoryString: added Warning message for type NC_STRING

parent fd3f7a62
......@@ -6993,7 +6993,22 @@ void cdfInqHistoryString(stream_t *streamptr, char *history)
{
int ncid = streamptr->fileID;
if ( streamptr->historyID != UNDEFID )
cdf_get_att_text(ncid, NC_GLOBAL, "history", history);
{
nc_type atttype;
cdf_inq_atttype(ncid, NC_GLOBAL, "history", &atttype);
if ( atttype == NC_CHAR )
{
cdf_get_att_text(ncid, NC_GLOBAL, "history", history);
}
#if defined (HAVE_NETCDF4)
else if ( atttype == NC_STRING )
{
// ToDo
Warning("History attribute with type NC_STRING unsupported!");
}
#endif
}
}
......
Supports Markdown
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