Table of Contents


otos - convert and combine orbits to a snapshot


otos in=orbit out=snapshot [parameter=value]


otos converts a set of orbits into a snapshot, as if they are part of one big family. Selections can be made from the orbits, as well as a simple stride through each orbit itself. More complex selections would have to be done using multiple runs of otos, and recombining them with snapadd.


The following parameters are recognized in any order if the keyword is also given:
input file, will be in orbit(5NEMO) format [no default]
output file, in snapshot(5NEMO) format [no default]
Orbit numbers to select. A ordered list can be given, the word "all" is reserved to select all orbits for copy. The first orbit is numbered 0. [default: all]
Steps allocated such that largest orbit fits in here. [default: 5000]
Stride through an orbit. If 1, all points are copied to the snapshot, numbers larger than 1 select every stride-th particle from the orbit to be copied. [default: 1]
Since the orbit file is only scanned once, we need to supply an estimate how many bodies to allocate for the final snapshot. [default: 10000]
If this mode it true, program continues to scan all orbits, according to input parameters orbit= and stride=, even if all allocated space in the snapshot has been filled. At the end it reports on the total number of bodies needed. [default: f]

See Also

snapshot(5NEMO) , orbit(5NEMO)


Peter Teuben


~/src/orbit/misc       otos.c otos.1

Update History

23-may-90    V1.0 created, seemingly in great haste...    PJT
20-dec-90    V1.1 scan= implemented; some manual page written    PJT

Table of Contents