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
6d704421
Commit
6d704421
authored
Feb 15, 2012
by
Uwe Schulzweida
Browse files
stream_cdf::cdfDefDatatype: bug fix for DATATYPE_UINT8
parent
03fcf158
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
6d704421
2012-02-15 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* stream_cdf::cdfDefDatatype: bug fix for DATATYPE_UINT8
2012-02-02 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* stream_cdf::cdfDefCurvilinear: bug fix for CLM s,u,v grids [report: Hans-Jrgen Panitz]
...
...
src/stream_cdf.c
View file @
6d704421
...
...
@@ -415,7 +415,7 @@ int cdfDefDatatype(int datatype, int filetype)
else
if
(
datatype
==
DATATYPE_UINT16
)
xtype
=
NC_USHORT
;
else
if
(
datatype
==
DATATYPE_UINT32
)
xtype
=
NC_UINT
;
#else
else
if
(
datatype
==
DATATYPE_UINT8
)
xtype
=
NC_
BYTE
;
else
if
(
datatype
==
DATATYPE_UINT8
)
xtype
=
NC_
SHORT
;
else
if
(
datatype
==
DATATYPE_UINT16
)
xtype
=
NC_INT
;
else
if
(
datatype
==
DATATYPE_UINT32
)
xtype
=
NC_INT
;
#endif
...
...
@@ -427,7 +427,7 @@ int cdfDefDatatype(int datatype, int filetype)
if
(
datatype
==
DATATYPE_INT8
)
xtype
=
NC_BYTE
;
else
if
(
datatype
==
DATATYPE_INT16
)
xtype
=
NC_SHORT
;
else
if
(
datatype
==
DATATYPE_INT32
)
xtype
=
NC_INT
;
else
if
(
datatype
==
DATATYPE_UINT8
)
xtype
=
NC_
BYTE
;
else
if
(
datatype
==
DATATYPE_UINT8
)
xtype
=
NC_
SHORT
;
else
if
(
datatype
==
DATATYPE_UINT16
)
xtype
=
NC_INT
;
else
if
(
datatype
==
DATATYPE_UINT32
)
xtype
=
NC_INT
;
else
if
(
datatype
==
DATATYPE_FLT64
)
xtype
=
NC_DOUBLE
;
...
...
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