Return a comparison object for a variable for being 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.
If True then string values are to be treated as regular expressions, which are evaluated using the re.search function..
The comparison object.
See also
gt, ne, le, lt, set, wi, wo
Examples
>>> c = cf.eq(5) >>> c <CF Comparison: x eq 5> >>> c.evaluate(5) True >>> c.evaluate(4) False
cf.equivalent
cf.ge
Enter search terms or a module, class or function name.