Return a comparison object for a variable for being less than or equal to a value.
The value which a variable is to be compared with.
The units of value. By default, the same units as the variable being tested are assumed, if applicable.
The comparison object.
See also
eq, ge, gt, ne, lt, set, wi, wo
Examples
>>> c = cf.le(5) >>> c <CF Comparison: x le 5> >>> c.evaluate(5) True >>> c.evaluate(6) False
cf.gt
cf.lt
Enter search terms or a module, class or function name.