cf.AuxiliaryCoordinate.X

AuxiliaryCoordinate.X

True if and only if the data are coordinates for a CF ‘X’ axis.

CF ‘X’ axis coordinates are defined by having one or more of the following:

  • The axis property has the value 'X'

  • Units of longitude

  • The standard_name property is one of 'longitude', 'projection_x_coordinate' or 'grid_longitude'

See also

ctype, T, Y, Z

Examples

>>> f = cf.example_field(0)
>>> print(f)
Field: specific_humidity (ncvar%q)
----------------------------------
Data            : specific_humidity(latitude(5), longitude(8)) 1
Cell methods    : area: mean
Dimension coords: latitude(5) = [-75.0, ..., 75.0] degrees_north
                : longitude(8) = [22.5, ..., 337.5] degrees_east
                : time(1) = [2019-01-01 00:00:00]
>>> c = f.coordinate('longitude')
>>> c.dump()
Dimension coordinate: longitude
    standard_name = 'longitude'
    units = 'degrees_east'
    Data(8) = [22.5, ..., 337.5] degrees_east
    Bounds:units = 'degrees_east'
    Bounds:Data(8, 2) = [[0.0, ..., 360.0]] degrees_east
>>> c.X
True
>>> c.Y
False