Commit b81c20c9 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

netcdf: added time axis attribute

parent 4451cb29
......@@ -36,6 +36,8 @@ static void cdfDefGlobalAtts(stream_t *streamptr);
static void cdfDefLocalAtts(stream_t *streamptr);
#endif
#define BNDS_SUFFIX "_bnds"
#define X_AXIS 1
#define Y_AXIS 2
#define Z_AXIS 3
......@@ -1083,6 +1085,8 @@ void cdfDefTime(stream_t* streamptr)
if ( len ) cdf_put_att_text(fileID, leadtimeid, "units", len, unitstr);
}
cdf_put_att_text(fileID, time_varid, "axis", 1, "T");
if ( streamptr->ncmode == 2 ) cdf_enddef(fileID);
}
......
Supports Markdown
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