cf.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:

>>> c = cf.example_field(0)
>>> c_keys = c.constructs.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']