cfdm.Data.get_count

Data.get_count(default=ValueError())[source]

Return the count variable for a compressed array.

New in version (cfdm): 1.7.0

See also

get_index, get_list

Parameters
default: optional

Return the value of the default parameter if a count variable has not been set. If set to an Exception instance then it will be raised instead.

Returns

The count variable.

Examples:

>>> c = d.get_count()