Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
f87e5451
Commit
f87e5451
authored
Sep 07, 2012
by
Uwe Schulzweida
Browse files
app/cdi: changed Info format
parent
05ac40a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/cdi.c
View file @
f87e5451
...
...
@@ -158,25 +158,25 @@ void printInfo(int gridtype, int vdate, int vtime, char *varname, double level,
int
i
,
ivals
=
0
,
imiss
=
0
;
double
arrmean
,
arrmin
,
arrmax
;
char
vdatestr
[
32
],
vtimestr
[
32
];
if
(
!
rec
)
{
if
(
vardis
)
fprintf
(
stdout
,
" Rec : Date
Time Varna
me
Level
S
ize Miss : Minimum Mean Maximum
\n
"
);
fprintf
(
stdout
,
" Rec : Date
Ti
me Level
Grids
ize Miss : Minimum Mean Maximum
: Parameter name
\n
"
);
/* ----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+ */
else
fprintf
(
stdout
,
" Rec : Date Time
Param
Level
S
ize Miss : Minimum Mean Maximum
\n
"
);
fprintf
(
stdout
,
" Rec : Date
Time Level
Grids
ize Miss : Minimum Mean Maximum
: Parameter ID
\n
"
);
/* ----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+ */
}
date2str
(
vdate
,
vdatestr
,
sizeof
(
vdatestr
));
time2str
(
vtime
,
vtimestr
,
sizeof
(
vtimestr
));
fprintf
(
stdout
,
"%6d :%s %s
%-10s
%7g "
,
++
rec
,
vdatestr
,
vtimestr
,
varname
,
level
);
fprintf
(
stdout
,
"%6d :%s %s %7g "
,
++
rec
,
vdatestr
,
vtimestr
,
level
);
fprintf
(
stdout
,
"%
7
d "
,
datasize
);
fprintf
(
stdout
,
"%
8
d "
,
datasize
);
fprintf
(
stdout
,
"%7d :"
,
nmiss
);
...
...
@@ -222,7 +222,7 @@ void printInfo(int gridtype, int vdate, int vtime, char *varname, double level,
if
(
datasize
>
0
)
arrmean
/=
datasize
;
fprintf
(
stdout
,
"%#12.5g%#12.5g%#12.5g
\n
"
,
arrmin
,
arrmean
,
arrmax
);
fprintf
(
stdout
,
"%#12.5g%#12.5g%#12.5g"
,
arrmin
,
arrmean
,
arrmax
);
}
else
{
...
...
@@ -249,9 +249,11 @@ void printInfo(int gridtype, int vdate, int vtime, char *varname, double level,
if
(
nvals_r
>
0
)
arrmean_r
=
arrsum_r
/
nvals_r
;
if
(
nvals_i
>
0
)
arrmean_i
=
arrsum_i
/
nvals_i
;
fprintf
(
stdout
,
" - (%#12.5g,%#12.5g) -
\n
"
,
arrmean_r
,
arrmean_i
);
fprintf
(
stdout
,
" - (%#12.5g,%#12.5g) -"
,
arrmean_r
,
arrmean_i
);
}
fprintf
(
stdout
,
" : %-11s
\n
"
,
varname
);
if
(
imiss
!=
nmiss
&&
nmiss
>
0
)
fprintf
(
stdout
,
"Found %d of %d missing values!
\n
"
,
imiss
,
nmiss
);
}
...
...
src/config.h.in
View file @
f87e5451
...
...
@@ -189,6 +189,11 @@
/* Version number of package */
#undef VERSION
/* Enable large inode numbers on Mac OS X 10.5. */
#ifndef _DARWIN_USE_64_BIT_INODE
# define _DARWIN_USE_64_BIT_INODE 1
#endif
/* Number of bits in a file offset, on hosts where this is settable. */
#undef _FILE_OFFSET_BITS
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment