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

No commit message

No commit message
parent 770c72f7
......@@ -302,13 +302,10 @@ static void printShortinfo(int streamID, int vlistID, int vardis)
fprintf(stdout, " %-3s", pstr);
if ( prec > 0 && prec <= 32 )
{
if ( vlistInqVarSzip(vlistID, varID) )
fprintf(stdout, "z");
else
fprintf(stdout, " ");
}
if ( vlistInqVarSzip(vlistID, varID) )
fprintf(stdout, "z");
else
fprintf(stdout, " ");
fprintf(stdout, "%9d", gridsize);
......
......@@ -2073,6 +2073,8 @@ int cdfDefVar(int streamID, int varID)
int gridindex, zaxisindex;
int tablenum;
int vlistID;
int iax = 0;
char axis[5];
STREAM *streamptr;
streamptr = stream_to_pointer(streamID);
......@@ -2104,7 +2106,9 @@ int cdfDefVar(int streamID, int varID)
{
if ( tid == UNDEFID ) Error(func, "Internal problem! Time undefined.");
dims[ndims++] = tid;
axis[iax++] = 't';
}
if ( zid != UNDEFID ) axis[iax++] = 'z';
if ( zid != UNDEFID ) dims[ndims++] = zid;
if ( yid != UNDEFID ) dims[ndims++] = yid;
if ( xid != UNDEFID ) dims[ndims++] = xid;
......@@ -2210,6 +2214,9 @@ int cdfDefVar(int streamID, int varID)
{
int gridTruncation = gridInqTrunc(gridID);
axis[iax++] = '-';
axis[iax++] = '-';
cdf_put_att_text(fileID, ncvarid, "axis", iax, axis);
cdf_put_att_int(fileID, ncvarid, "truncation", NC_INT, 1L, &gridTruncation);
}
......
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