load_directory

pyarts.xml.load_directory(directory, exclude=None)[source]

Load all XML files in a given directory.

Search given directory for files with .xml or .xml.gz extension and try to load them using load().

Parameters:
  • directory (str) – Path to the directory.

  • exclude (Container[str]) – Filenames to exclude.

Returns:

Filenames without extension are keys for the file content.

Return type:

dict

Example

Load all files in foo except for the lookup table in abs_lookup.xml.

>>> load_directory('foo', exclude=['abs_lookup.xml'])