make_binary
- pyarts.xml.make_binary(filename, out='', absolute_out=False, parents=True)[source]
Loads xml-file at filename and saves it back in binary format
- Parameters:
filename (str) – Filename path.
out (str) – Path to save the binary. Empty causes overwrite of file.
absolute_out (bool) – If true, then write file to out-path rather than to the relative path out. Does nothing if file is in the working folder and out is relative.
parents (bool) – Create missing parent directories.
- Returns:
Path to the created binary file.
- Return type:
Example
Load t_field.xml and save it back as binary it as ./binary/t_field.xml and ./binary/t_field.bin
>>> make_binary('t_field.xml', out='binary') 'binary/t_field.xml'