cf.Units.islatitude

Units.islatitude

True if and only if the units are latitude units.

This is the case if and only if the units attribute is one of 'degrees_north', 'degree_north', 'degree_N', 'degrees_N', 'degreeN', and 'degreesN'.

Note that units of 'degrees' are not latitude units.

Examples

>>> Units('degrees_north').islatitude
True
>>> Units('degrees').islatitude
False
>>> Units('degrees_east').islatitude
False
>>> Units('kg').islatitude
False
>>> Units().islatitude
False

Previous topic

cf.Units.isdimensionless

Next topic

cf.Units.islongitude

This Page