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
abde3228
Commit
abde3228
authored
Jun 10, 2013
by
Uwe Schulzweida
Browse files
cdf_create: print file name on error
parent
da12db61
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/cdf_int.c
View file @
abde3228
...
...
@@ -71,7 +71,7 @@ void cdf_create(const char *path, int cmode, int *ncidp)
status
=
nc_set_fill
(
*
ncidp
,
NC_NOFILL
,
&
oldfill
);
if
(
status
!=
NC_NOERR
)
Error
(
"%s
"
,
nc_strerror
(
status
));
if
(
status
!=
NC_NOERR
)
Error
(
"%s
: %s"
,
path
,
nc_strerror
(
status
));
}
...
...
src/stream_cdf.c
View file @
abde3228
...
...
@@ -689,8 +689,8 @@ void cdfDefVarMissval(stream_t *streamptr, int varID, int dtype, int lcheck)
if
(
lcheck
&&
streamptr
->
ncmode
==
2
)
cdf_redef
(
fileID
);
xtype
=
cdfDefDatatype
(
dtype
,
streamptr
->
filetype
);
/* workaround for a netCDF bug? */
if
(
xtype
==
NC_BYTE
&&
missval
>
127
)
xtype
=
NC_INT
;
if
(
xtype
==
NC_BYTE
&&
missval
>
127
&&
missval
<
256
)
xtype
=
NC_INT
;
cdf_put_att_double
(
fileID
,
ncvarid
,
"_FillValue"
,
(
nc_type
)
xtype
,
1
,
&
missval
);
cdf_put_att_double
(
fileID
,
ncvarid
,
"missing_value"
,
(
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