cf.GatheredArray.get_list¶
-
GatheredArray.get_list(default=ValueError())[source]¶ Return the list variable for a compressed array.
New in version (cfdm): 1.7.0
- Parameters
- default: optional
Return the value of the default parameter if the list variable has not been set.
If set to an
Exceptioninstance then it will be raised instead.
- Returns
ListThe list variable.
Examples:
>>> l = g.get_list()
>>> l = g.get_list(default=None)