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
694ca1f1
Commit
694ca1f1
authored
Jul 26, 2017
by
Uwe Schulzweida
Browse files
cdfDefVarMissval: write _FillValue on first timestep.
parent
571c9f6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cdf_write.c
View file @
694ca1f1
...
...
@@ -94,7 +94,8 @@ void cdfDefVarMissval(stream_t *streamptr, int varID, int dtype, int lcheck)
if
(
xtype
==
NC_BYTE
&&
missval
>
127
&&
missval
<
256
)
xtype
=
NC_INT
;
if
(
streamptr
->
ncmode
!=
2
||
if
(
lcheck
==
0
||
streamptr
->
ncmode
!=
2
||
streamptr
->
filetype
==
CDI_FILETYPE_NC
||
streamptr
->
filetype
==
CDI_FILETYPE_NC2
)
cdf_put_att_double
(
fileID
,
ncvarid
,
"_FillValue"
,
(
nc_type
)
xtype
,
1
,
&
missval
);
...
...
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