Commit d2640e0b authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

grib2: use URL syntax for reference_link

parent d565b410
......@@ -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];
}
......
......@@ -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);
}
}
......
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