cfdm.CompressedArray.get_compressed_axes

CompressedArray.get_compressed_axes()[source]

Return axes that are compressed in the underlying array.

Returns
list

The compressed axes described by their integer positions in the uncompressed array.

Examples

>>> c.ndim
4
>>> c.compressed_array.ndim
3
>>> c.compressed_axes()
[1, 2]