Commit f6bff5a9 authored by Fabian Wachsmann's avatar Fabian Wachsmann
Browse files

Recognize ZAXIS_PRESSURE from standard_name

parent b51c57cf
......@@ -1841,6 +1841,8 @@ void verify_coordinate_vars_1(int ncid, int ndims, ncdim_t *ncdims, ncvar_t *ncv
strcmp(ncvars[ncvarid].longname, "generalized height") == 0) &&
strcmp(ncvars[ncvarid].stdname, "height") == 0 )
ncvars[ncvarid].zaxistype = ZAXIS_REFERENCE;
else if ( str_is_equal(ncvars[ncvarid].stdname, "air_pressure") )
ncvars[ncvarid].zaxistype = ZAXIS_PRESSURE;
}
if ( !ncvars[ncvarid].islon && ncvars[ncvarid].longname[0] != 0 &&
......@@ -1945,6 +1947,8 @@ void verify_coordinate_vars_2(int nvars, ncvar_t *ncvars)
{
ncvars[ncvarid].isc = true;
}
else if ( str_is_equal(ncvars[ncvarid].stdname, "air_pressure") )
ncvars[ncvarid].zaxistype = ZAXIS_PRESSURE;
/* not needed anymore for rotated grids */
if ( !ncvars[ncvarid].islon && ncvars[ncvarid].longname[0] != 0 &&
......
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