cf.Units.ispressure

Units.ispressure

True if the units are pressure units, false otherwise.

Examples

>>> u = Units(units='bar')
>>> u.ispressure
True
>>> u = Units(units='hours since 2100-1-1', calendar='noleap')
>>> u.ispressure
False

Previous topic

cf.Units.islongitude

Next topic

cf.Units.isreftime

This Page