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
72da380f
Commit
72da380f
authored
Mar 07, 2013
by
Uwe Schulzweida
Browse files
netCDF: added function cdfDefGridUUID() to define global uuid of horizontal grid
parent
6c445a9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
72da380f
...
...
@@ -5,6 +5,7 @@
2013-03-07 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* cdfDefGrid: bug fix for generic grids with nx or ny > 0
* netCDF: ignore the attribute valid_min/valid_max, if the data type is inconsistent
2013-02-18 Florian Prill <Florian.Prill@dwd.de>
...
...
src/stream_cdf.c
View file @
72da380f
...
...
@@ -682,6 +682,7 @@ void cdfDefVarMissval(stream_t *streamptr, int varID, int dtype, int lcheck)
fileID
=
streamptr
->
fileID
;
ncvarid
=
streamptr
->
vars
[
varID
].
ncvarid
;
missval
=
vlistInqVarMissval
(
vlistID
,
varID
);
if
(
lcheck
&&
streamptr
->
ncmode
==
2
)
cdf_redef
(
fileID
);
xtype
=
cdfDefDatatype
(
dtype
,
streamptr
->
filetype
);
...
...
@@ -2528,7 +2529,10 @@ void cdfDefGridUUID(stream_t *streamptr, int gridID)
uuid2str
(
uuidOfHGrid
,
uuidOfHGridStr
);
if
(
uuidOfHGridStr
[
0
]
!=
0
&&
strlen
(
uuidOfHGridStr
)
==
36
)
{
// cdf_put_att_text(fileID, ncvarid, "uuid", 36, uuidOfHGridStr);
int
fileID
=
streamptr
->
fileID
;
if
(
streamptr
->
ncmode
==
2
)
cdf_redef
(
fileID
);
cdf_put_att_text
(
fileID
,
NC_GLOBAL
,
"uuid"
,
36
,
uuidOfHGridStr
);
if
(
streamptr
->
ncmode
==
2
)
cdf_enddef
(
fileID
);
}
}
}
...
...
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