cf.Coordinate.select

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

Return the instance if it matches the given conditions.

v.select(*args, **kwargs) is equivalent to v if v.match(*args, **kwargs) else cf.List().

See cf.Variable.match for details.

Parameters:
args, kwargs
: optional

See cf.Variable.match.

Returns:
out
: cf.Coordinate or list

If the variable matches the given conditions then it is returned as an object identity. Otherwise an empty list is returned.