cfdm.Bounds.identity¶
-
Bounds.
identity
(default='')[source]¶ Return the canonical identity.
By default the identity is the first found of the following:
The
standard_name
property.The
cf_role
property, preceded by'cf_role='
.The
long_name
property, preceded by'long_name='
.The netCDF variable name, preceded by
'ncvar%'
.The value of the default parameter.
Properties include any inherited properties.
New in version (cfdm): 1.7.0
See also
- Parameters
- default: optional
If no identity can be found then return the value of the default parameter.
- Returns
The identity.
Examples:
>>> b.inherited_properties() {'foo': 'bar', 'long_name': 'Longitude'} >>> b.properties() {'long_name': 'A different long name'} >>> b.identity() 'long_name=A different long name' >>> b.del_property('long_name') 'A different long name' >>> b.identity() 'long_name=Longitude'