cf.FieldList.select

FieldList.select(*identities, **kwargs)[source]

Alias of cf.FieldList.select_by_identity.

To find the inverse of the selection, use a list comprehension with the match_by_identity method of the constructs. For example, to select all constructs whose identity is not 'air_temperature':

>>> gl = cf.FieldList(
...     f for f in fl if not f.match_by_identity('air_temperature')
... )