Return a domain axis identifier from the field.
Axes are selected with the criteria specified by the keyword parameters. If no keyword parameters are specified then all axes are selected.
See also
| Examples 1: |
|---|
>>> a = f.axis('time')
| Parameters: |
|
|---|---|
| Returns: |
|
| Examples 2: |
>>> f
<CF Field: air_temperature(time(12), latitude(64), longitude(128)) K>
>>> f.data_axes()
['dim0', 'dim1', 'dim2']
>>> f.axis('time')
'dim0'
>>> f.axis('Y')
'dim1'
>>> f.axis(size=64)
'dim1'
>>> f.axis('X', size=128)
'dim2'
>>> print f.axis('foo')
None
>>> print f.axis('T', size=64)
None