cf.FieldList.select

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

Return the elements which match the given conditions.

The match conditions are passed to each element’s match method in turn.

Parameters :
args, kwargs :

As for a variable’s match method.

Returns :
out :

A new list containing the matching elements.

Examples

>>> fl
[<>
 <>]
>>> fl.select(attr={'standard_name': 'air_temperature'})
[<>]

Previous topic

cf.FieldList.reverse

Next topic

cf.FieldList.set_equals

This Page