Skip to content
Snippets Groups Projects
Commit aafad2e3 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

make_cdilib_nc update.

parent 9ec5179d
No related branches found
No related tags found
No related merge requests found
......@@ -113,6 +113,7 @@ files="basetime.c \
stream_write.c \
stream_read.c \
stream_cdf_i.c \
stream_cdf_o.c \
stream_cdf_time.c \
stream_history.c \
stream_record.c \
......@@ -129,6 +130,7 @@ files="basetime.c \
cdi_key.c \
cdi_att.c \
vlist_var.c \
table.c \
zaxis.c"
car () {
......
......@@ -139,21 +139,28 @@ int cdiGetFiletype(const char *filename, int *byteorder)
filetype = CDI_FILETYPE_NC4;
if ( CDI_Debug ) Message("found HDF file = %s", filename);
}
#ifdef HAVE_LIBSERVICE
else if ( srvCheckFiletype(fileID, &swap) )
{
filetype = CDI_FILETYPE_SRV;
if ( CDI_Debug ) Message("found SRV file = %s", filename);
}
#endif
#ifdef HAVE_LIBEXTRA
else if ( extCheckFiletype(fileID, &swap) )
{
filetype = CDI_FILETYPE_EXT;
if ( CDI_Debug ) Message("found EXT file = %s", filename);
}
#endif
#ifdef HAVE_LIBIEG
else if ( iegCheckFiletype(fileID, &swap) )
{
filetype = CDI_FILETYPE_IEG;
if ( CDI_Debug ) Message("found IEG file = %s", filename);
}
#endif
#ifdef HAVE_LIBGRIB
else if ( gribCheckSeek(fileID, &recpos, &version) == 0 )
{
if ( version <= 1 )
......@@ -167,6 +174,7 @@ int cdiGetFiletype(const char *filename, int *byteorder)
if ( CDI_Debug ) Message("found seeked GRIB2 file = %s", filename);
}
}
#endif
fileClose(fileID);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment