cf.Constructs.domain_axis_identity¶
-
Constructs.
domain_axis_identity
(key)[source]¶ Return the canonical identity for a domain axis construct.
The identity is the first found of the following:
- The canonical identity of a dimension coordinate contruct that span the domain axis construct.
- The identity of a one-dimensional auxiliary coordinate construct
that spans the domain axis construct. This will either be the value
of a “standard_name”, “cf_role” (preceeded by
'cf_role='
) or “axis” (preceeded by'axis='
) property, as appropriate. - The netCDF dimension name, preceeded by ‘ncdim%’.
- The domain axis construct key, preceeded by ‘key%’.
Parameters: - key:
str
The construct key for the domain axis construct.
- Parameter example:
key='domainaxis2'
Returns: str
The identity.
Examples:
>>> c.domain_axis_identity('domainaxis1') 'longitude' >>> c.domain_axis_identity('domainaxis2') 'axis=Y' >>> c.domain_axis_identity('domainaxis3') 'cf_role=timeseries_id' >>> c.domain_axis_identity('domainaxis4') 'key%domainaxis4')