File Import
 
Currently GAMGI can import in the following formats: 1) native XML (extension .xml); 2) xyz (extension .xyz). GAMGI always uses the file extension to decide the file format, so for example a proper xyz file with an extension .xml will be parsed as a XML format and so flagged down as an invalid file. When the filename has no extension, GAMGI assumes it is written in its native XML format.

GAMGI XML format is a vectorial format, so all information is preserved in the file, including non-default configuration data. Configuration data is always written in the beginning of the file, so it is already loaded when the object data is imported (a necessary step to guarantee that after importing the file the initial state is fully restored again).

Formats

The GAMGI XML formats for both object and configuration data are described in the chapter Formats.

In xyz format, GAMGI expects to find a line with the number of atoms, followed by this number of lines, each one containing one integer (the atomic number) followed by three reals (the x,y,z coordinates, respectively).

Home