cf.cellsize¶
-
cf.
cellsize
(value, units=None)[source]¶ A
Query
object for a “cell size” condition.- Parameters
- value:
The query condition’s value.
- units:
str
orUnits
, optional The units of value. By default, the same units as the operand being tested are assumed, if applicable. If units is specified and value already has units (such as those attached to a
Data
object), then the pair of units must be equivalent.
- Returns
Query
The query object.
Examples
>>> cf.cellsize(cf.lt(5, 'km')) <CF Query: cellsize(lt <CF Data: 5 km>)> >>> cf.cellsize(5) <CF Query: cellsize(eq 5)> >>> cf.cellsize(cf.Data(5, 'km')) <CF Query: cellsize(eq <CF Data: 5 km>)> >>> cf.cellsize(5, units='km') <CF Query: cellsize(eq <CF Data: 5 km>)>