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_type
Parameters: - default: optional
Return the value of the default parameter there is no compressed dimension. If set to an
Exception
instance then it will be raised instead.
Returns: int
The position of the compressed dimension in the compressed array.
Examples:
>>> d.get_compressed_dimension() 2