Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
fbf9d39e
Commit
fbf9d39e
authored
Feb 19, 2018
by
Uwe Schulzweida
Browse files
scanTimestep1: set default of rdate to vdate (bug fix).
parent
b66592df
Changes
6
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
fbf9d39e
2018-02-19 Uwe Schulzweida
* scanTimestep1: set default of rdate to vdate (bug fix)
2018-02-12 Uwe Schulzweida
* varDefZaxis: don't remove default of longname and units
...
...
src/stream_cgribex.c
View file @
fbf9d39e
...
...
@@ -784,21 +784,11 @@ int cgribexScanTimestep1(stream_t *streamptr)
cdi_generate_vars
(
streamptr
);
if
(
fcast
)
{
taxisID
=
taxisCreate
(
TAXIS_RELATIVE
);
taxis
->
type
=
TAXIS_RELATIVE
;
taxis
->
rdate
=
rdate
;
taxis
->
rtime
=
rtime
;
taxis
->
unit
=
tunit
;
}
else
{
taxisID
=
taxisCreate
(
TAXIS_ABSOLUTE
);
taxis
->
type
=
TAXIS_ABSOLUTE
;
taxis
->
unit
=
tunit
;
}
taxis
->
unit
=
tunit
;
taxis
->
type
=
fcast
?
TAXIS_RELATIVE
:
TAXIS_ABSOLUTE
;
taxisID
=
taxisCreate
(
taxis
->
type
);
taxis
->
rdate
=
rdate
;
taxis
->
rtime
=
rtime
;
taxis
->
vdate
=
(
int
)
datetime0
.
date
;
taxis
->
vtime
=
(
int
)
datetime0
.
time
;
...
...
src/stream_ext.c
View file @
fbf9d39e
...
...
@@ -292,6 +292,8 @@ void extScanTimestep1(stream_t *streamptr)
taxis
->
type
=
TAXIS_ABSOLUTE
;
taxis
->
vdate
=
(
int
)
datetime0
.
date
;
taxis
->
vtime
=
(
int
)
datetime0
.
time
;
taxis
->
rdate
=
taxis
->
vdate
;
taxis
->
rtime
=
taxis
->
vtime
;
int
vlistID
=
streamptr
->
vlistID
;
vlistDefTaxis
(
vlistID
,
taxisID
);
...
...
src/stream_gribapi.c
View file @
fbf9d39e
...
...
@@ -963,20 +963,12 @@ int gribapiScanTimestep1(stream_t * streamptr)
cdi_generate_vars
(
streamptr
);
int
taxisID
=
-
1
;
if
(
fcast
)
{
taxisID
=
taxisCreate
(
TAXIS_RELATIVE
);
taxis
->
type
=
TAXIS_RELATIVE
;
taxis
->
rdate
=
rdate
;
taxis
->
rtime
=
rtime
;
taxis
->
unit
=
tunit
;
}
else
{
taxisID
=
taxisCreate
(
TAXIS_ABSOLUTE
);
taxis
->
type
=
TAXIS_ABSOLUTE
;
}
taxis
->
unit
=
tunit
;
taxis
->
type
=
fcast
?
TAXIS_RELATIVE
:
TAXIS_ABSOLUTE
;
taxisID
=
taxisCreate
(
taxis
->
type
);
taxis
->
rdate
=
rdate
;
taxis
->
rtime
=
rtime
;
taxis
->
vdate
=
(
int
)
datetime0
.
date
;
taxis
->
vtime
=
(
int
)
datetime0
.
time
;
...
...
src/stream_ieg.c
View file @
fbf9d39e
...
...
@@ -805,6 +805,8 @@ void iegScanTimestep1(stream_t *streamptr)
taxis
->
type
=
TAXIS_ABSOLUTE
;
taxis
->
vdate
=
(
int
)
datetime0
.
date
;
taxis
->
vtime
=
(
int
)
datetime0
.
time
;
taxis
->
rdate
=
taxis
->
vdate
;
taxis
->
rtime
=
taxis
->
vtime
;
int
vlistID
=
streamptr
->
vlistID
;
vlistDefTaxis
(
vlistID
,
taxisID
);
...
...
src/stream_srv.c
View file @
fbf9d39e
...
...
@@ -292,9 +292,11 @@ void srvScanTimestep1(stream_t *streamptr)
cdi_generate_vars
(
streamptr
);
int
taxisID
=
taxisCreate
(
TAXIS_ABSOLUTE
);
taxis
->
type
=
TAXIS_ABSOLUTE
;
taxis
->
type
=
TAXIS_ABSOLUTE
;
taxis
->
vdate
=
(
int
)
datetime0
.
date
;
taxis
->
vtime
=
(
int
)
datetime0
.
time
;
taxis
->
rdate
=
taxis
->
vdate
;
taxis
->
rtime
=
taxis
->
vtime
;
int
vlistID
=
streamptr
->
vlistID
;
vlistDefTaxis
(
vlistID
,
taxisID
);
...
...
Write
Preview
Markdown
is supported
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