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
79d1ff49
Commit
79d1ff49
authored
Nov 15, 2012
by
Uwe Schulzweida
Browse files
cdfInqTimestep: added check for timevalue = NC_FILL_DOUBLE
parent
3f0d31a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
79d1ff49
...
...
@@ -2,6 +2,10 @@
* Version 1.5.9 released
2012-11-15 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* cdfInqTimestep: added check for timevalue = NC_FILL_DOUBLE
2012-11-14 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* app/cdi: added optional compression level -z zip[_1-9]
...
...
src/stream_cdf.c
View file @
79d1ff49
...
...
@@ -430,7 +430,6 @@ int cdfDefDatatype(int datatype, int filetype)
else
xtype
=
NC_FLOAT
;
}
return
(
xtype
);
}
...
...
@@ -487,7 +486,6 @@ void defineAttributes(int vlistID, int varID, int fileID, int ncvarID)
}
#endif
int
cdfCopyRecord
(
int
streamID2
,
int
streamID1
)
{
double
*
data
;
...
...
@@ -6889,6 +6887,8 @@ int cdfInqTimestep(int streamID, int tsID)
else
{
cdf_get_var1_double
(
fileID
,
nctimevarid
,
&
index
,
&
timevalue
);
if
(
timevalue
>=
NC_FILL_DOUBLE
)
timevalue
=
0
;
cdiDecodeTimeval
(
timevalue
,
taxis
,
&
taxis
->
vdate
,
&
taxis
->
vtime
);
}
...
...
@@ -6898,11 +6898,13 @@ int cdfInqTimestep(int streamID, int tsID)
size_t
start
[
2
],
count
[
2
];
start
[
0
]
=
tsID
;
count
[
0
]
=
1
;
start
[
1
]
=
0
;
count
[
1
]
=
1
;
cdf_get_vara_double
(
fileID
,
nctimeboundsid
,
start
,
count
,
&
timevalue
);
if
(
timevalue
>=
NC_FILL_DOUBLE
)
timevalue
=
0
;
cdiDecodeTimeval
(
timevalue
,
taxis
,
&
taxis
->
vdate_lb
,
&
taxis
->
vtime_lb
);
start
[
0
]
=
tsID
;
count
[
0
]
=
1
;
start
[
1
]
=
1
;
count
[
1
]
=
1
;
cdf_get_vara_double
(
fileID
,
nctimeboundsid
,
start
,
count
,
&
timevalue
);
if
(
timevalue
>=
NC_FILL_DOUBLE
)
timevalue
=
0
;
cdiDecodeTimeval
(
timevalue
,
taxis
,
&
taxis
->
vdate_ub
,
&
taxis
->
vtime_ub
);
}
...
...
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