cfdm.Data.get_filenames

Data.get_filenames()[source]

Return the name of the file containing the data array.

Returns
set

The file name in normalized, absolute form. If the data is are memory then an empty set is returned.

Examples:

>>> f = cfdm.example_field(0)
>>> cfdm.write(f, 'temp_file.nc')
>>> g = cfdm.read('temp_file.nc')[0]
>>> d = g.data
>>> d.get_filenames()
{'/data/user/temp_file.nc'}
>>> d[...] = -99
>>> d.get_filenames()
set()