Table of Contents

Name

snapshift - shifts the phase space coordinates of an N-body system

Synopsis

snapshift in=snap_in out=snap_out [parameter=value]

Description

This program shifts the coordinates of all the particles in phase space. Position and velocity are treated separately however.

Note: The shifted coordinates is added to the existing coordinates unless the mode keyword is set to add

Parameters

The following parameters are recognized in any order if the keyword is also given:
in=in-file
input file, in snapshot(5NEMO) format [no default]
out=out_file
output file, in snapshot(5NEMO) format [no default]
rshift=x,y,z
The shift in position space [default: 0,0,0].
vshift=u,v,w
The shift in velocity space [default: 0,0,0].
times=time-ranges
Only snapshots with time values within times-ranges, which is of the form ts[:te],..., will be copied. [default: all].
mode=add|+|sub|-
Shift mode, if the shifted coordinates are to be added (+) or subtracted (-) to the particles coordinates. [Default: add].

See Also

snapstack(1NEMO) , snapadd(1NEMO) , snapshot(5NEMO)

Author

Peter Teuben

Files


~/src/pjt/nbody      snapshift.c snapshift.1

Update History


24-Apr-87    V1.0: created              PJT
 5-May-87    V1.1: checks and copies almost all Tag’s and snapshots    PJT
 9-Mar-88    V1.2: data history added + debug output      PJT
 6-jun-88    V2.0: new filestruct    PJT
25-may-90    V2.3: added mode keyword    PJT


Table of Contents