Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libcdi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mpim-sw
libcdi
Commits
7422cb7d
Commit
7422cb7d
authored
7 years ago
by
Uwe Schulzweida
Browse files
Options
Downloads
Patches
Plain Diff
printinfo.h update.
parent
109a643d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/printinfo.h
+17
-37
17 additions, 37 deletions
app/printinfo.h
with
17 additions
and
37 deletions
app/printinfo.h
+
17
−
37
View file @
7422cb7d
...
...
@@ -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
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment