cf.Data.new_dimension_identifier

Data.new_dimension_identifier(values=None)[source]

Return a dimension name not being used by the data array.

Note that a partition of the data array may have dimensions which don’t belong to the data array itself.

Returns :
out : str

The new dimension name.

Examples

>>> d.dimensions
['dim1', 'dim0']
>>> d.partitions.info('dimensions')
[['dim0', 'dim0'],
 ['dim1', 'dim0', 'dim2']]
>>> d.new_dimension_identifier()
'dim3'

Previous topic

cf.Data.expand_partition_dims

Next topic

cf.Data.partition_boundaries

This Page