cf.Units.islongitude

Units.islongitude

True if and only if the units are longitude units.

This is the case if the units attribute is one of 'degrees_east', 'degree_east', 'degree_E', 'degrees_E', 'degreeE', and 'degreesE'.

Returns False if the units attribute is 'degrees'.

Examples

>>> Units(units='degrees_east').islongitude
True
>>> Units(units='degrees').islongitude
False
>>> Units(units='degrees_north').islongitude
False

Previous topic

cf.Units.islatitude

Next topic

cf.Units.ispressure

This Page