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
d2640e0b
Commit
d2640e0b
authored
Feb 10, 2011
by
Uwe Schulzweida
Browse files
grib2: use URL syntax for reference_link
parent
d565b410
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/stream.c
View file @
d2640e0b
...
...
@@ -959,19 +959,19 @@ int streamOpenRead(const char *filenames)
{
int
filetype
,
byteorder
;
int
streamID
;
int
num_fnames
;
int
num_fnames
=
0
;
char
*
fnames
[
MAX_FNAMES
];
const
char
*
filename
;
stream_t
*
streamptr
=
NULL
;
num_fnames
=
get_fnames
(
filenames
,
fnames
,
MAX_FNAMES
);
//
num_fnames = get_fnames(filenames, fnames, MAX_FNAMES);
if
(
num_fnames
==
0
)
filename
=
filenames
;
else
{
int
i
;
for
(
i
=
0
;
i
<
num_fnames
;
++
i
)
printf
(
"fnames: %d %s
\n
"
,
i
,
fnames
[
i
]);
for
(
i
=
0
;
i
<
num_fnames
;
++
i
)
printf
(
"fnames: %d %s
\n
"
,
i
,
fnames
[
i
]);
filename
=
fnames
[
0
];
}
...
...
src/stream_gribapi.c
View file @
d2640e0b
...
...
@@ -584,7 +584,7 @@ void gribapiAddRecord(int streamID, int param, grib_handle *gh,
if
(
grib_get_long
(
gh
,
"numberOfGridInReference"
,
&
lpar
)
==
0
)
grid
.
position
=
lpar
;
if
(
grib_get_string
(
gh
,
"gridDescriptionFile"
,
reference_link
,
&
len
)
==
0
)
{
if
(
strncmp
(
reference_link
,
"file:/"
,
6
)
==
0
)
if
(
strncmp
(
reference_link
,
"file:/
/
"
,
7
)
==
0
)
grid
.
reference
=
strdupx
(
reference_link
);
}
}
...
...
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