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.DimensionCoordinate or list

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

Previous topic

cf.DimensionCoordinate.sd

Next topic

cf.DimensionCoordinate.setprop

This Page