Commit 72da380f authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

netCDF: added function cdfDefGridUUID() to define global uuid of horizontal grid

parent 6c445a9a
......@@ -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>
......
......@@ -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);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment