Commit 72bc6e2a authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

cgribexScanTimesteps: cleanup debug output

parent 437252d6
......@@ -461,10 +461,6 @@ void cgribexAddRecord(stream_t * streamptr, int param, int *isec1, int *isec2, d
streamptr->tsteps[tsID].nallrecs++;
streamptr->nrecs++;
if ( CDI_Debug )
Message("varID = %d param = %d zaxistype = %d gridID = %d levelID = %d",
varID, param, zaxistype, gridID, levelID);
}
static
......@@ -723,7 +719,7 @@ int cgribexScanTimestep1(stream_t * streamptr)
nrecs++;
if ( CDI_Debug )
Message("%4d %8d %4d %8d %8d %6d", nrecs, (int)recpos, param, level1, vdate, vtime);
Message("Read record %2d (id=%s lev1=%d lev2=%d) %8d %6d", nrecs_scanned, paramstr, level1, level2, vdate, vtime);
cgribexAddRecord(streamptr, param, isec1, isec2, fsec2, fsec3,
isec4, recsize, recpos, datatype, comptype, lmv, iret);
......@@ -904,6 +900,8 @@ int cgribexScanTimestep2(stream_t * streamptr)
cgribexDecodeHeader(isec0, isec1, isec2, fsec2, isec3, fsec3, isec4, fsec4,
(int *) gribbuffer, recsize, &lmv, &iret);
nrecs_scanned++;
param = cdiEncodeParam(ISEC1_Parameter, ISEC1_CodeTable, 255);
cdiParamToString(param, paramstr, sizeof(paramstr));
......@@ -997,7 +995,7 @@ int cgribexScanTimestep2(stream_t * streamptr)
}
if ( CDI_Debug )
Message("%4d %8d %4d %8d %8d %6d", rindex+1, (int)recpos, param, level1, vdate, vtime);
Message("Read record %2d (id=%s lev1=%d lev2=%d) %8d %6d", nrecs_scanned, paramstr, level1, level2, vdate, vtime);
streamptr->tsteps[tsID].records[recID].size = recsize;
......@@ -1090,7 +1088,7 @@ int cgribexScanTimestep(stream_t * streamptr)
char paramstr[32];
vlistID = streamptr->vlistID;
/*
if ( CDI_Debug )
{
Message("streamID = %d", streamptr->self);
......@@ -1098,7 +1096,7 @@ int cgribexScanTimestep(stream_t * streamptr)
Message("rts = %d", streamptr->rtsteps);
Message("nts = %d", streamptr->ntsteps);
}
*/
isec0 = streamptr->record->sec0;
isec1 = streamptr->record->sec1;
isec2 = streamptr->record->sec2;
......@@ -1169,6 +1167,8 @@ int cgribexScanTimestep(stream_t * streamptr)
cgribexDecodeHeader(isec0, isec1, isec2, fsec2, isec3, fsec3, isec4, fsec4,
(int *) gribbuffer, recsize, &lmv, &iret);
nrecs_scanned++;
param = cdiEncodeParam(ISEC1_Parameter, ISEC1_CodeTable, 255);
cdiParamToString(param, paramstr, sizeof(paramstr));
......@@ -1266,7 +1266,7 @@ int cgribexScanTimestep(stream_t * streamptr)
}
if ( CDI_Debug )
Message("%4d %8d %4d %8d %8d %6d", rindex+1, (int)recpos, param, level1, vdate, vtime);
Message("Read record %2d (id=%s lev1=%d lev2=%d) %8d %6d", nrecs_scanned, paramstr, level1, level2, vdate, vtime);
if ( cgribexVarCompare(compVar, streamptr->tsteps[tsID].records[recID]) != 0 )
{
......@@ -1280,9 +1280,6 @@ int cgribexScanTimestep(stream_t * streamptr)
streamptr->tsteps[tsID].records[recID].position = recpos;
streamptr->tsteps[tsID].records[recID].size = recsize;
if ( CDI_Debug )
Message("%4d %8d %4d %8d %8d %6d", rindex, (int)recpos, param, level1, vdate, vtime);
rindex++;
}
......
......@@ -365,9 +365,6 @@ void varAddRecord(int recID, int param, int gridID, int zaxistype, int lbounds,
levelID = levelNewEntry(varID, level1, level2);
vartable[varID].levelTable[levelID].recID = recID;
if ( CDI_Debug )
Message("varID = %d levelID = %d", varID, levelID);
*pvarID = varID;
*plevelID = levelID;
}
......
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