cf.wo

cf.wo(value0, value1, units=None)[source]

Return an object for testing whether a variable is without 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.

units : str or cf.Units, optional

If applicable, the units of value0 and value1. By default, the same units as the variable being tested are assumed.

Returns :
out : cf.Comparison

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

Examples

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

Previous topic

cf.wi

Next topic

cf.ATOL

This Page