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
81324990
Commit
81324990
authored
Sep 28, 2018
by
Uwe Schulzweida
Browse files
Revert last commit.
parent
30793bb4
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
81324990
...
...
@@ -3,10 +3,6 @@
* using EXSE library version 1.4.1
* Version 1.9.6 released
2018-09-28 Uwe Schulzweida
* cdfDefVar: set astype to NC_DOUBLE (bug fix)
2018-09-26 Uwe Schulzweida
* Added gridInqXvalsPart() and gridInqYvalsPart() [patch from: Niklas Rber]
...
...
src/cdf_write.c
View file @
81324990
...
...
@@ -700,6 +700,13 @@ int cdfDefVar(stream_t *streamptr, int varID)
if
(
laddoffset
||
lscalefactor
)
{
nc_type
astype
=
(
xtype
==
NC_FLOAT
)
?
NC_FLOAT
:
NC_DOUBLE
;
if
(
(
astype
==
NC_DOUBLE
)
&&
IS_EQUAL
(
addoffset
,
(
double
)
((
float
)
addoffset
))
&&
IS_EQUAL
(
scalefactor
,
(
double
)
((
float
)
scalefactor
))
)
{
astype
=
NC_FLOAT
;
}
cdf_put_att_double
(
fileID
,
ncvarid
,
"add_offset"
,
astype
,
1
,
&
addoffset
);
cdf_put_att_double
(
fileID
,
ncvarid
,
"scale_factor"
,
astype
,
1
,
&
scalefactor
);
}
...
...
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