How can it be executed?
Sim2Oogl can either be run from the command line with arguements
passed to it, or it can be invoked through Geomview as an external
When running sim2oogl from the command line, the basic syntax is:
% sim2oogl input_filename input_file_type output_file_type
% sim2oogl input_filename [SNAP|ZENO|P] [POS|VEL|PVEL|PVEC|ALL]
- input_filename is the name of the input file. sim2oogl
- Zeno input files with a .dat extension
- SNAP/Tipsy files with either a .data.gz, .data.Z or .data
- P files with no extenstion
- input_file_type is the type of input file. This can be P, ZENO
or SNAP; note that these are case sensitive.
- output_file_type is the form that the output files will
take. There are several choices:
- POS which produces position coordinates; the output can be
found in filename_rootxyz.
- VEL which produces velocity coordinates; the output can be
found in filename_rootVxVyVz.
- PVEL which produces the three observables X, Y and Vz, the
radial velocity (in the Z direction); the output can be
found in filename_rootxyVz.
- PVEC which produces position coordinates with their
velocity vectors superposed; the output can be
found in filename_rootxyzVxVyVz.
- ALL which produces all of the four above output files.
- Once again, the output options are case sensitive.
When running Sim2Oogl as an external module in Geomview, you must
first modify the ~/.geomview file with the following line:
(emodule-define "Sim2Oogl" "path_to_source_directory/Sim2Oogl")
When you next invoke geomview, you will notice an additional external
module - Sim2Oogl. Click on it and you will see the Sim2Oogl
user interface open, as shown below. (Click here for a screenshot).
The same basic options apply as when running from the command
line. In this case, there are two lists: the lefthand list will give a
listing of the directory. By clicking on an item in this list it will
be moved to the right hand list.
If you wish to convert this item, ensuring that you have chosen the
correct input file type and selected an appropriate output file type,
simply double click on it with the left mouse button. This selects the
file; you must then hit the run button on the bottom panel to proceed with the conversion.
If you wish to remove it from the right hand list,
highlight it with a single click of the left mouse button then, making
sure to hold down the shift key, single click again with the left
Multiple files of different input filetypes and with different
outtypes files can be converted in one fell swoop. Simply select each
file to be converted in the right hand list with the appropriate
filetype selected in the upper panel. When all the files have been
selected, simply hit run and Sim2Oogl will sequentially convert each
file that was selected.
It should be noted that at this stage, if Sim2Oogl encounters an
error in the conversion process that it will exit.