cf.Domain.identities

Domain.identities()[source]

Return all possible identities.

The identities comprise:

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

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

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

  • All other properties, preceded by the property name and a equals e.g. 'foo=bar'.

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

New in version (cfdm): 1.9.0.0

See also

identity

Returns
list

The identities.

Examples

>>> d = cf.Domain()
>>> d.set_properties({'foo': 'bar',
...                   'long_name': 'Domain for model'})
>>> d.nc_set_variable('dom1')
>>> d.identities()
['long_name=Domain for model', 'foo=bar', 'ncvar%dom1']