cf.FieldList.match

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

Return a list of booleans showing which elements match the given conditions.

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

Parameters :
args, kwargs :

As for the variable’s match method.

Returns :
out : list

A built-in list of booleans showing which elements match the conditions.

Examples

>>> fl
[<>
 <>]
>>> fl.match(attr={'standard_name': 'air_temperature'})
[True, False]

Previous topic

cf.FieldList.insert

Next topic

cf.FieldList.name

This Page