cf.Field.get_filenames

Field.get_filenames()[source]

Return the name of the file or files containing the data.

The names of the file or files containing the data of metadata constructs are also returned.

Returns
set

The file names in normalized, absolute form. If all of the data are 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]
>>> g.get_filenames()
{'/data/user/file1.nc'}