cf.DomainAxis.identities

DomainAxis.identities(generator=False, **kwargs)[source]

Return all possible identities.

The identities comprise:

  • The netCDF dimension name, preceded by ‘ncdim%’.

New in version (cfdm): 1.7.0

See also

identity

Parameters
generator: bool, optional

If True then return a generator for the identities, rather than a list.

New in version (cfdm): 1.8.9.0

kwargs: optional

Additional configuration parameters. Currently none. Unrecognised parameters are ignored.

New in version (cfdm): 1.8.9.0

Returns
list or generator

The identities.

Examples:

>>> d.nc_get_dimension()
'time'
>>> d.identities()
['ncdim%time']
>>> d.nc_del_dimension()
'time'
>>> d.identities()
[]
>>> for i in d.identities(generator=True):
...     print(i)
...