HTML automatically generated with rman
Table of Contents

Name

snapatlas - tabulate a snapshot in ASCII atlas format

Synopsis

snapatlas [parameter=value]

Description

snapatlas prints out a snapshot in atlas(5NEMO) format. As the atlas and this format are still in development, don’t rely any programs on this yet. (april 2003)

Parameters

The following parameters are recognized in any order if the keyword is also given:
in=
Input file (in standard snapshot(5NEMO) format). No default.
times=
Times to select snapshot [all]
options=
Things to output. For an atlas, this should be i,m,x,y,z,vx,vy,vz,phi,aux,key (which is of course the default), but by using this keyword, you can change them.
format=
Format used to output floating point numbers [%.16e]
header=
Add header to output? [f]

Examples

Here is an example with a header and modified output format (to make it fit on this line) of a multi-snapshot (albeit with the same fake time) file:
   % mkspiral - 4 nmodel=2 | snapatlas - format=%g header=t
# i m x y z vx vy vz phi aux key 
4
0 
0 0.25 -0.319825 -0.676624 0 0.48471 -0.229111 0 0 0 0 
1 0.25 -0.259019 -0.304021 0 0.272079 -0.231805 0 0 0 0 
2 0.25 -0.34059 0.38346 0 -0.321852 -0.28587 0 0 0 0 
3 0.25 0.273086 0.183263 0 -0.169677 0.252841 0 0 0 0 
 
4
0 
0 0.25 0.489699 0.694055 0 -0.461807 0.325833 0 0 0 0 
1 0.25 0.281568 -0.905331 0 0.559667 0.174063 0 0 0 0 
2 0.25 0.779421 -0.276075 0 0.186778 0.527316 0 0 0 0 
3 0.25 0.103361 0.516519 0 -0.429855 0.0860186 0 0 0 0 
Note however that the 3 last columns (potential, density and nearest neighbor) would need to be added by an integrator or other program. In this example they are not present in the snapshot, and will all appear as 0 in the output column.

The reverse, to read an atlas file back into NEMO, tabtos(1NEMO) can be used. From the previous example:

  % tabtos atlas.tab atlas.dat nbody,time skip,m,x,y,z,vx,vy,vz,phi,aux,key

See Also

snapprint(1NEMO) , tabtos(1NEMO) , bodytrans(1NEMO) , snapshot(5NEMO) , atlas(5NEMO)

Files

src/nbody/reduc/snapatlas.c

Author

Peter Teuben

Update History


8-Apr-03    V1.0 Created    PJT


Table of Contents