cfunits.Units.isreftime¶
-
Units.
isreftime
¶ True if the units are reference time units, false otherwise.
Note that time units (such as
'days'
) are not reference time units.See also
isdimensionless
,islongitude
,islatitude
,ispressure
,istime
Examples
>>> Units('days since 2000-12-1 03:00').isreftime True >>> Units('hours since 2100-1-1', calendar='noleap').isreftime True >>> Units(calendar='360_day').isreftime True >>> Units('days').isreftime False >>> Units('kg').isreftime False >>> Units().isreftime False