cf.AuxiliaryCoordinate.identities

AuxiliaryCoordinate.identities()[source]

Return all possible identities.

The identities comprise:

  • The “standard_name” property.

  • The “id” attribute, preceeded by 'id%'.

  • The “cf_role” property, preceeded by 'cf_role='.

  • The “axis” property, preceeded by 'axis='.

  • The “long_name” property, preceeded by 'long_name='.

  • All other properties (including “standard_name”), preceeded by the property name and an '='.

  • The coordinate type ('X', 'Y', 'Z' or 'T').

  • The netCDF variable name, preceeded by 'ncvar%'.

The identities of the bounds, if present, are included (with the exception of the bounds netCDF variable name).

New in version 3.0.0.

See also

id, identity

Returns
list

The identities.

Examples:

>>> f.properties()
{'foo': 'bar',
 'long_name': 'Air Temperature',
 'standard_name': 'air_temperature'}
>>> f.nc_get_variable()
'tas'
>>> f.identities()
['air_temperature',
 'long_name=Air Temperature',
 'foo=bar',
 'standard_name=air_temperature',
 'ncvar%tas']
>>> f.properties()
{}
>>> f.bounds.properties()
{'axis': 'Z',
 'units': 'm'}
>>> f.identities()
['axis=Z', 'units=m', 'ncvar%z']