Commit 7422cb7d authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

printinfo.h update.

parent 109a643d
......@@ -62,52 +62,32 @@ void printFiletype(int streamID, int vlistID)
{
int filetype = streamInqFiletype(streamID);
// clang-format off
switch ( filetype )
{
case CDI_FILETYPE_GRB:
printf("GRIB");
break;
case CDI_FILETYPE_GRB2:
printf("GRIB2");
break;
case CDI_FILETYPE_NC:
printf("NetCDF");
break;
case CDI_FILETYPE_NC2:
printf("NetCDF2");
break;
case CDI_FILETYPE_NC4:
printf("NetCDF4");
break;
case CDI_FILETYPE_NC4C:
printf("NetCDF4 classic");
break;
case CDI_FILETYPE_SRV:
printf("SERVICE");
break;
case CDI_FILETYPE_EXT:
printf("EXTRA");
break;
case CDI_FILETYPE_IEG:
printf("IEG");
break;
default:
printf(" File format: unsupported filetype %d" , filetype);
break;
case CDI_FILETYPE_GRB: printf("GRIB"); break;
case CDI_FILETYPE_GRB2: printf("GRIB2"); break;
case CDI_FILETYPE_NC: printf("NetCDF"); break;
case CDI_FILETYPE_NC2: printf("NetCDF2"); break;
case CDI_FILETYPE_NC4: printf("NetCDF4"); break;
case CDI_FILETYPE_NC4C: printf("NetCDF4 classic"); break;
case CDI_FILETYPE_NC5: printf("NetCDF5"); break;
case CDI_FILETYPE_SRV: printf("SERVICE"); break;
case CDI_FILETYPE_EXT: printf("EXTRA"); break;
case CDI_FILETYPE_IEG: printf("IEG"); break;
default: printf(" File format: unsupported filetype %d" , filetype); break;
}
if ( filetype == CDI_FILETYPE_SRV || filetype == CDI_FILETYPE_EXT || filetype == CDI_FILETYPE_IEG )
{
switch ( streamInqByteorder(streamID) )
{
case CDI_BIGENDIAN:
printf(" BIGENDIAN"); break;
case CDI_LITTLEENDIAN:
printf(" LITTLEENDIAN"); break;
default:
printf(" byteorder: %d undefined", streamInqByteorder(streamID)); break;
case CDI_BIGENDIAN: printf(" BIGENDIAN"); break;
case CDI_LITTLEENDIAN: printf(" LITTLEENDIAN"); break;
default: printf(" byteorder: %d undefined", streamInqByteorder(streamID)); break;
}
}
// clang-format on
if ( filetype == CDI_FILETYPE_GRB || filetype == CDI_FILETYPE_NC4 || filetype == CDI_FILETYPE_NC4C )
{
......@@ -591,7 +571,7 @@ void printZaxisInfo(int vlistID)
if ( number > 0 )
{
fprintf(stdout, "%33s : ", "zaxis");
fprintf(stdout, "number = %d\n", number);
fprintf(stdout, "number=%d\n", number);
}
unsigned char uuidOfVGrid[CDI_UUID_SIZE];
......
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