Commit 470f5358 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

cdf_inq_contents: check zaxis type depth_blow_sea/land

parent 3f47006a
2008-12-?? Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* cdf_inq_contents: check zaxis type "depth_blow_sea/land" (bug fix)
2008-11-13 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* add new function: streamSync
......
......@@ -4304,12 +4304,14 @@ int cdfInqContents(int streamID)
else if ( strcmp(ncvars[ncvarid].units, "cm") == 0 )
{
if ( strcmp(ncvars[ncvarid].longname, "depth below land") == 0 ||
strcmp(ncvars[ncvarid].longname, "depth_below_land") == 0 ||
strcmp(ncvars[ncvarid].longname, "levels below the surface") == 0 )
ncvars[ncvarid].zaxistype = ZAXIS_DEPTH_BELOW_LAND;
}
else if ( strcmp(ncvars[ncvarid].units, "m") == 0 )
{
if ( strcmp(ncvars[ncvarid].longname, "depth below sea") == 0 )
if ( strcmp(ncvars[ncvarid].longname, "depth_below_sea") == 0 ||
strcmp(ncvars[ncvarid].longname, "depth below sea") == 0 )
ncvars[ncvarid].zaxistype = ZAXIS_DEPTH_BELOW_SEA;
else if ( strcmp(ncvars[ncvarid].longname, "height") == 0 ||
strcmp(ncvars[ncvarid].longname, "height above the surface") == 0 )
......@@ -4405,13 +4407,15 @@ int cdfInqContents(int streamID)
else if ( strcmp(ncvars[ncvarid].units, "cm") == 0 )
{
if ( strcmp(ncvars[ncvarid].longname, "depth below land") == 0 ||
strcmp(ncvars[ncvarid].longname, "depth_below_land") == 0 ||
strcmp(ncvars[ncvarid].longname, "levels below the surface") == 0 )
ncvars[ncvarid].zaxistype = ZAXIS_DEPTH_BELOW_LAND;
continue;
}
else if ( strcmp(ncvars[ncvarid].units, "m") == 0 )
{
if ( strcmp(ncvars[ncvarid].longname, "depth below sea") == 0 )
if ( strcmp(ncvars[ncvarid].longname, "depth_below_sea") == 0 ||
strcmp(ncvars[ncvarid].longname, "depth below sea") == 0 )
ncvars[ncvarid].zaxistype = ZAXIS_DEPTH_BELOW_SEA;
else if ( strcmp(ncvars[ncvarid].longname, "height") == 0 ||
strcmp(ncvars[ncvarid].longname, "height above the surface") == 0 )
......
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