cfdm.Domain.get_filenames

Domain.get_filenames(normalise=True)[source]

Return the file names containing the metadata construct data.

Parameters
normalise: bool, optional

If True then normalise to an absolute path. If False (the default) then no normalisation is done.

New in version (cfdm): 1.12.0.0

Returns
set

The file names in normalised, absolute form. If all of the data are in memory then an empty set is returned.

Examples

>>>
>>> d = cfdm.example_domain(0)
>>> cfdm.write(d, 'temp_file.nc')
>>> e = cfdm.read('temp_file.nc', domain=True)[0]
>>> e.get_filenames()
{'temp_file.nc'}