cfdm.Data.source

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

Return the underlying array object.

Parameters
default: optional

Return the value of the default parameter if the array has not been set.

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

Returns
subclass of Array

The underlying array object.

Examples

>>> f = cfdm.read('file.nc')[0]
>>> d = f.data
>>> d.source()
<NetCDFArray(149, 182): file=file.nc variable=latitude>