cf.AuxiliaryCoordinate.identities

AuxiliaryCoordinate.identities()[source]

Return all possible identities.

The identities comprise:

  • The “standard_name” property.

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

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

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

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

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

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

  • The netCDF variable name, preceded 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']