cf.CoordinateList.select

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

Next topic

cf.CoordinateList.set_equals

This Page