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

cdfDefXYaxis: removed call to Error() if axisname not available

parent 288199f4
...@@ -1219,12 +1219,13 @@ void cdfDefXaxis(stream_t *streamptr, int gridID, int ndims) ...@@ -1219,12 +1219,13 @@ void cdfDefXaxis(stream_t *streamptr, int gridID, int ndims)
int gridindex = vlistGridIndex(vlistID, gridID); int gridindex = vlistGridIndex(vlistID, gridID);
gridInqXname(gridID, axisname); gridInqXname(gridID, axisname);
// if ( axisname[0] == 0 ) Error("axis name undefined!");
if ( axisname[0] == 0 ) return;
gridInqXlongname(gridID, longname); gridInqXlongname(gridID, longname);
gridInqXstdname(gridID, stdname); gridInqXstdname(gridID, stdname);
gridInqXunits(gridID, units); gridInqXunits(gridID, units);
if ( axisname[0] == 0 ) Error("axis name undefined!");
for ( index = 0; index < ngrids; index++ ) for ( index = 0; index < ngrids; index++ )
{ {
if ( streamptr->xdimID[index] != UNDEFID ) if ( streamptr->xdimID[index] != UNDEFID )
...@@ -1361,12 +1362,13 @@ void cdfDefYaxis(stream_t *streamptr, int gridID, int ndims) ...@@ -1361,12 +1362,13 @@ void cdfDefYaxis(stream_t *streamptr, int gridID, int ndims)
int gridindex = vlistGridIndex(vlistID, gridID); int gridindex = vlistGridIndex(vlistID, gridID);
gridInqYname(gridID, axisname); gridInqYname(gridID, axisname);
// if ( axisname[0] == 0 ) Error("axis name undefined!");
if ( axisname[0] == 0 ) return;
gridInqYlongname(gridID, longname); gridInqYlongname(gridID, longname);
gridInqYstdname(gridID, stdname); gridInqYstdname(gridID, stdname);
gridInqYunits(gridID, units); gridInqYunits(gridID, units);
if ( axisname[0] == 0 ) Error("axis name undefined!");
for ( index = 0; index < ngrids; index++ ) for ( index = 0; index < ngrids; index++ )
{ {
if ( streamptr->ydimID[index] != UNDEFID ) if ( streamptr->ydimID[index] != UNDEFID )
......
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