cfdm.Data.get_list

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

Return the list variable for a compressed array.

New in version (cfdm): 1.7.0

See also

get_count, get_index

Parameters
default: optional

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

Returns

The list variable.

Examples

>>> l = d.get_list()