cfdm.Data.get_filenames

Data.get_filenames()[source]

Return the names of any files containing the data array.

See also

original_filenames

Returns
set

The file names in normalised, absolute form. If the data are all in 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()