load

pyarts.xml.load(filename, search_arts_path=True)[source]

Load a variable from an ARTS XML file.

The input file can be either a plain or gzipped XML file.

By default, the current directory, ARTS_INCLUDE_PATH and ARTS_DATA_PATH environment variables are searched (in that order) if the passed filename is a relative path.

Parameters:
  • filename (str) – Name of ARTS XML file.

  • search_arts_path (bool) – Set to False to ignore ARTS search paths.

Returns:

Data from the XML file. Type depends on data in file.

Example

>>> pyarts.xml.load('tests/reference/matrix.xml')
0  1
2  3