cfdm.NetCDF4Array.get_variable

NetCDF4Array.get_variable(default=AttributeError())[source]

Get the open dataset variable object for the data.

Added in version (cfdm): 1.13.1.0

Parameters:
default: optional

Return default if the variable has not been set.

If set to an Exception instance then it will be raised instead.

Returns:

The open dataset variable object.