Translate netCDF variable names stored in the names attribute into axes and names attributes.
Parameters: |
|
---|---|
Returns: |
|
Examples: |
>>> c = cf.CellMethods('t: mean lon: mean')
>>> c.names = (('t',), ('lon',))
>>> c.axes = ((None,), (None,))
>>> d = c.netcdf_translation(f)
>>> d.names = (('time',), ('longitude',))
>>> d.axes = (('dim0',), ('dim2',))
>>> d
<CF CellMethods: 'time: mean longitude: mean')