Skip to content
GitLab
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
c84d452a
Commit
c84d452a
authored
Jul 23, 2011
by
Uwe Schulzweida
Browse files
netcdf input: correct wrong formatted time units
parent
15f6915a
Changes
3
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
c84d452a
2011-07-23 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* netcdf input: correct wrong formatted time units [request: Harald Anlauf]
2011-07-14 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* netcdf: added support for GRID_FOURIER (fourier coefficients)
...
...
app/printinfo.h
View file @
c84d452a
...
...
@@ -249,14 +249,13 @@ void printGridInfo(int vlistID)
}
else
if
(
gridtype
==
GRID_SPECTRAL
)
{
fprintf
(
stdout
,
"size : dim = %d truncation = %d nsp = %d
\n
"
,
gridsize
,
trunc
,
gridsize
/
2
);
fprintf
(
stdout
,
"size : dim = %d nsp = %d truncation = %d
\n
"
,
gridsize
,
gridsize
/
2
,
trunc
);
fprintf
(
stdout
,
"%*s"
,
nbyte0
,
""
);
fprintf
(
stdout
,
" complexPacking = %d
\n
"
,
gridInqComplexPacking
(
gridID
));
}
else
if
(
gridtype
==
GRID_FOURIER
)
{
fprintf
(
stdout
,
"size : dim = %d nfc = %d
\n
"
,
gridsize
,
gridsize
/
2
);
fprintf
(
stdout
,
"size : dim = %d nfc =
%d truncation =
%d
\n
"
,
gridsize
,
gridsize
/
2
,
trunc
);
}
else
if
(
gridtype
==
GRID_GME
)
{
...
...
src/stream_cdf.c
View file @
c84d452a
...
...
@@ -230,14 +230,20 @@ int splitBasetime(const char *timeunits, taxis_t *taxis)
}
else
if
(
timetype
==
TAXIS_RELATIVE
)
{
year
=
atoi
(
ptu
);
if
(
year
<
0
)
ptu
++
;
int
v1
,
v2
,
v3
;
v1
=
atoi
(
ptu
);
if
(
v1
<
0
)
ptu
++
;
while
(
isdigit
((
int
)
*
ptu
)
)
ptu
++
;
month
=
atoi
(
++
ptu
);
v2
=
atoi
(
++
ptu
);
while
(
isdigit
((
int
)
*
ptu
)
)
ptu
++
;
day
=
atoi
(
++
ptu
);
v3
=
atoi
(
++
ptu
);
while
(
isdigit
((
int
)
*
ptu
)
)
ptu
++
;
if
(
v3
>
999
&&
v1
<
32
)
{
year
=
v3
;
month
=
v2
;
day
=
v1
;
}
else
{
year
=
v1
;
month
=
v2
;
day
=
v3
;
}
while
(
isspace
((
int
)
*
ptu
)
)
ptu
++
;
if
(
*
ptu
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment