cf.VariableList.select

VariableList.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.VariableList.reverse

Next topic

cf.VariableList.set_equals

This Page