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

Added env. CDI_SKIP_RECORDS to skip the first GRIB records

parent 4ca964bd
......@@ -628,6 +628,9 @@ void cgribexScanTimestep1(int streamID)
while ( nskip-- > 0 )
{
recsize = gribGetSize(fileID);
if ( recsize == 0 )
Error(func, "Skipping of %d records failed!", cdiSkipRecords);
recpos = fileGetPos(fileID);
fileSetPos(fileID, recsize, SEEK_CUR);
}
......@@ -640,6 +643,9 @@ void cgribexScanTimestep1(int streamID)
if ( recsize == 0 )
{
if ( nrecs == 0 )
Error(func, "No GRIB records found!");
streamptr->ntsteps = 1;
break;
}
......
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