Commit 395ec8fe authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

app/cdi: use vlistZaxisIndex

parent c4b159cb
......@@ -355,11 +355,11 @@ void printShortinfo(int streamID, int vlistID, int vardis)
fprintf(stdout, "%9d", gridsize);
fprintf(stdout, " %3d ", gridID + 1);
fprintf(stdout, " %3d ", vlistGridIndex(vlistID, gridID) + 1);
levelsize = zaxisInqSize(zaxisID);
fprintf(stdout, " %6d", levelsize);
fprintf(stdout, " %3d", zaxisID + 1);
fprintf(stdout, " %3d", vlistZaxisIndex(vlistID, zaxisID) + 1);
fprintf(stdout, "\n");
}
......@@ -381,9 +381,9 @@ void printShortinfo(int streamID, int vlistID, int vardis)
zaxisInqUnits(zaxisID, units);
units[12] = 0;
if ( zaxistype == ZAXIS_GENERIC && ltype != 0 )
nbyte0 = fprintf(stdout, " %4d : %-11s (ltype=%3d) : ", zaxisID+1, longname, ltype);
nbyte0 = fprintf(stdout, " %4d : %-11s (ltype=%3d) : ", vlistZaxisIndex(vlistID, zaxisID)+1, longname, ltype);
else
nbyte0 = fprintf(stdout, " %4d : %-17s %5s : ", zaxisID+1, longname, units);
nbyte0 = fprintf(stdout, " %4d : %-17s %5s : ", vlistZaxisIndex(vlistID, zaxisID)+1, longname, units);
nbyte = nbyte0;
for ( levelID = 0; levelID < levelsize; levelID++ )
{
......
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