cf.DimensionCoordinate.where

DimensionCoordinate.where(condition, x=None, y=None, i=False)

Set data array elements depending on a condition.

Returns:out : cf.DimensionCoordinate