cf.outside

cf.outside(value0, value1, units=None)

Return an object for testing whether a variable is is outside the given range.

Parameters :
value0 : object

The lower bound of the range which a variable is to be compared with.

value1 : object

The upper bound of the range which a variable is to be compared with.

Returns :
out : Comparison

A Comparison object which will evaluate whether or not the comparison evaluates to True.

Examples

>>> c = cf.outside(5)
>>> c
<CF Comparison: x outside (5, 7)>
>>> c.evaluate(4)
True
>>> c.evaluate(6)
False

Previous topic

cf.ne

Next topic

cf.aggregate

This Page