Return a cf.Query object for a variable for being equal to a value.
Parameters: |
|
---|---|
Returns: |
|
Examples: |
>>> q = cf.eq(5)
>>> q
<CF Query: x eq 5>
>>> q.evaluate(5)
True
>>> q == 4
False
>>> q = cf.eq('air', exact=False)
>>> q == 'air_temperature'
True
>>> q = cf.eq('.*temp', exact=False)
>>> q == 'air_temperature'
True