cfdm.Constructs.keys

Constructs.keys()[source]

Return all of the construct keys, in arbitrary order.

New in version (cfdm): 1.7.0

See also

get, items, values

Returns
dict_keys

The construct keys as a Python dict_keys iterator.

Examples

>>> f = cfdm.example_field(0)
>>> c = f.constructs
>>> c_keys = c.keys()
>>> print(c_keys)
dict_keys(['domainaxis0',
           'domainaxis1',
           'domainaxis2',
           'dimensioncoordinate0',
           'dimensioncoordinate1',
           'dimensioncoordinate2',
           'cellmethod0'])
>>> type(c_keys)
<class 'dict_keys'>
>>> list(c_keys)
['domainaxis0',
 'domainaxis1',
 'domainaxis2',
 'dimensioncoordinate0',
 'dimensioncoordinate1',
 'dimensioncoordinate2',
 'cellmethod0']