This HTML automatically generated with rman for NEMO
Table of Contents

Name

martelsnap - convert Martel "pos-vel" dump files to snapshot

Synopsis

martelsnap [parameter=value]

Description

martelsnap converts a simple binary (fortran) dump of phase space coordinates into a standard snapshot(5NEMO) formatted file. These files are amongst created by Hugo Martel’s software, although are generally useful for any N-body code.

Parameters

The following parameters are recognized in any order if the keyword is also given:
in=
Input Martel file. No default.
out=
Output snapshot file. No default.
nbody=
Max number of particles. Default: 262144.
headline=
Random verbiage
swap=t|f
Swap the real (float) numbers. This is needed if the data were produced on a machine with a different endianism from where you are processing it. [Default: f]

See Also

unfio(1NEMO) , bswap(1NEMO)

http://xxx.lanl.gov/abs/astro-ph/9903210

Format

Data format is a simple binary dump of the single precision coordinates and velocities of all particles, the following snippet of fortran-77 code would produce such files:
    REAL x(N),y(N),z(N),vx(N),vy(N),vz(N),
    OPEN(10,FILE=’posvel.dat’,STATUS=’new’,FORM=’unformatted’)
    WRITE(10) x,y,z,vx,vy,vx
    CLOSE(10)

Author

Peter Teuben

Update History


19-Mar-99    V1.0 Created       PJT
29-jun-01    V1.1 added swap=    PJT
1-jul-01    V1.1a   major bug: posvel matrix was never transposed...    PJT


Table of Contents