Commit 405563ff authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Bug fix for CF conform hybrid sigma pressure levels.

parent 097a1beb
2017-08-08 Uwe Schulzweida
* Bug fix for CF conform hybrid sigma pressure levels
2017-08-04 Uwe Schulzweida
* Added CALENDAR_GREGORIAN
......
......@@ -1905,7 +1905,8 @@ void verify_coordinate_vars_2(int nvars, ncvar_t *ncvars)
ncvars[ncvarid].isy = true;
continue;
}
else if ( strcmp(ncvars[ncvarid].units, "level") == 0 || strcmp(ncvars[ncvarid].units, "1") == 0 )
else if ( ncvars[ncvarid].zaxistype == CDI_UNDEFID &&
(strcmp(ncvars[ncvarid].units, "level") == 0 || strcmp(ncvars[ncvarid].units, "1") == 0) )
{
if ( strcmp(ncvars[ncvarid].longname, "hybrid level at layer midpoints") == 0 )
ncvars[ncvarid].zaxistype = ZAXIS_HYBRID;
......
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