Bases: object
A simple, as yet not fully specified, container for CF units and calendar information.
Parameters: | **kwargs – The ‘units’ and ‘calendar’ attributes may be set with keyword parameters. |
---|
Special attributes:
Attribute | Description |
---|---|
calendar | The calendar of time units |
units | The units string |
Examples:
>>> u = cf.Units(units='days since 2000-1-1', calendar='standard')
>>> u
<CF Units:units='days since 2000-1-1', calendar='standard'>
>>> u.units
'days since 2000-1-1'
>>> u.calendar
'standard'
>>> u == u
True
>>> u.equals(u)
True
Methods and attributes defined here:
Return True if two instances are congruent in that they have
- Equal units attributes (if set)
- Equal calendar attributes (if set)
Equality of numbers is to within a tolerance. Refer to cf for details.
Parameters: |
|
---|---|
Returns: | True if the two objects are congruent, False otherwise. |
Currently, equals!