cf.Data.get_compressed_dimension¶
-
Data.get_compressed_dimension(default=ValueError())[source]¶ Return the position of the compressed dimension in the compressed array.
. versionadded:: 1.7.0
See also
compressed_array,get_compressed_axes,get_compression_typeParameters: - default: optional
Return the value of the default parameter there is no compressed dimension. If set to an
Exceptioninstance then it will be raised instead.
Returns: intThe position of the compressed dimension in the compressed array.
Examples:
>>> d.get_compressed_dimension() 2