cf.Data.get_compressed_axes

Data.get_compressed_axes()[source]

Return the dimensions that have compressed in the underlying array.

New in version 1.7.0.

Returns
list

The dimensions of the data that are compressed to a single dimension in the underlying array. If the data are not compressed then an empty list is returned.

Examples:

>>> d.shape
(2, 3, 4, 5, 6)
>>> d.compressed_array.shape
(2, 14, 6)
>>> d.get_compressed_axes()
[1, 2, 3]
>>> d.get_compression_type()
''
>>> d.get_compressed_axes()
[]