cf.RaggedIndexedArray.get_compressed_dimension¶
-
RaggedIndexedArray.get_compressed_dimension(*default)[source]¶ Returns the compressed dimension’s position in the array.
New in version (cfdm): 1.7.0
See also
get_compressed_axearray,get_compressed_axes,get_compressed_type- Parameters
- default: optional
Return default if the underlying array is not compressed.
- Returns
intThe position of the compressed dimension in the compressed array. If the underlying is not compressed then default is returned, if provided.
Examples:
>>> i = d.get_compressed_dimension()