Commit 4b999370 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Read NC_FORMAT_CDF5 data as CDF2 (preliminary fix).

parent 77f50eaa
......@@ -2,6 +2,10 @@
* Version 1.9.1 released
2017-09-07 Uwe Schulzweida
* Read NC_FORMAT_CDF5 data as CDF2 (preliminary fix)
2017-09-05 Uwe Schulzweida
* netcdf: added support for GRID_TRAJECTORY
......
......@@ -129,6 +129,11 @@ int cdiGetFiletype(const char *filename, int *byteorder)
filetype = CDI_FILETYPE_NC2;
if ( CDI_Debug ) Message("found CDF2 file = %s", filename);
}
else if ( memcmp(buffer, "CDF\005", 4) == 0 )
{
filetype = CDI_FILETYPE_NC2;
if ( CDI_Debug ) Message("found CDF5 file = %s", filename);
}
else if ( memcmp(buffer+1, "HDF", 3) == 0 )
{
filetype = CDI_FILETYPE_NC4;
......
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