cf.NetCDFArray.get_filename

NetCDFArray.get_filename(default=AttributeError())[source]

The name of the file containing the array.

If there are multiple files then an AttributeError is raised by default.

New in version (cfdm): 1.10.0.2

Parameters
default: optional

Return the value of the default parameter if there is no file or there is more than one file.

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

Returns
str

The file name.