cf.Coordinate.islongitude

Coordinate.islongitude

True if and only if the coordinate represents longitude.

This is the case only if any of the following are true:

  • The units attribute is one of 'degrees_east', 'degree_east', 'degree_E', 'degrees_E', 'degreeE', and 'degreesE' (returns False if 'degrees').
  • The standard_name property is 'longitude' (returns False if 'grid_longitude').

Examples

>>> if c.islongitude
...    print c

Previous topic

cf.Coordinate.islatitude

Next topic

cf.Coordinate.properties

This Page