cfunits.Units.ispressure

Units.ispressure

True if the units are pressure units, false otherwise.

Examples

>>> Units('bar').ispressure
True
>>> Units('hPa').ispressure
True
>>> Units('meter^-1-kilogram-second^-2').ispressure
True
>>> Units('hours since 2100-1-1', calendar='noleap').ispressure
False