cf.DimensionCoordinate.select

DimensionCoordinate.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.Variable or cf.List

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

Previous topic

cf.DimensionCoordinate.period

Next topic

cf.DimensionCoordinate.setattr

This Page