cf.Data.change_axis_names

Data.change_axis_names(dim_name_map)[source]

Change the axis names.

The dimension names are arbitrary, so mapping them to another arbitrary collection does not change the data array values, units, dimension directions nor dimension order.

Examples

>>> d.dimensions
['dim0', 'dim1', 'dim2']
>>> dim_name_map
{'dim0': 'dim1',
 'dim1': 'dim0',
 'dim2': 'dim2',
 'dim3': 'dim3'}
>>> d.change_axis_names(dim_name_map)
>>> d.dimensions
['dim1', 'dim0', 'dim2']

Previous topic

cf.Data.binary_mask

Next topic

cf.Data.chunk

This Page