WriteXML

Workspace.WriteXML(self, output_file_format: pyarts3.arts.String | None = None, input: object | None = None, filename: pyarts3.arts.String | None = None, no_clobber: pyarts3.arts.Index | None = None) None

Writes a workspace variable to an XML file.

This method can write variables of any group.

If no_clobber is set to 1, an increasing number will be appended to the filename if the file already exists.

See FileType for valid output_file_format.

Note

ARTS groups, including those that are not workspace groups, generally have a method called savexml that you can access directly from python. It is often more convenient and better to use this method directly instead of using this workspace method. It exists mainly for completeness and for use in agendas.

Author: Oliver Lemke

Parameters:
  • output_file_format (String, optional) – The format of the output. Defaults to "ascii" [IN]

  • input (Any) – Variable to be saved. [IN]

  • filename (String) – Name of the XML file. [IN]

  • no_clobber (Index, optional) – 0: Overwrite existing files, 1: Use unique filenames. Defaults to 0 [IN]