Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
aafad2e3
Commit
aafad2e3
authored
Apr 05, 2018
by
Uwe Schulzweida
Browse files
make_cdilib_nc update.
parent
9ec5179d
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/make_cdilib_nc
View file @
aafad2e3
...
...
@@ -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
()
{
...
...
src/stream.c
View file @
aafad2e3
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment