This HTML automatically generated with rman for NEMO
Table of Contents

Name

snapsplit - split a snapshot into pieces

Synopsis

snapsplit in= out= [parameter=value]

Description

snapsplit is modeled after the unix program split(1) , and splits a snapshot up into pieces of equal length, except perhaps for the last one which may be ’’partial’’. It’s purpose is solely to be able to process snapshots which are too big to fit into memory. You can either specify the size of the new snapshot, or the number of pieces you want to have a snapshot split into.

Note that not all programs can correctly handle snapshots in this serialized mode. For example, radprof(1NEMO) needs all particles in memory at the same time.

If you want to create split a snapshot by time, use snaptrim(1NEMO) ; it can also create multiple output files.

The reverse of snapsplit is snapmerge(1NEMO) .

Parameters

The following parameters are recognized in order; they may be given in any order if the keyword is also given. Use --help to confirm this man page is up to date.
in=
Input snapshot No default.
out=
Output snapshot. If a printf(3) -like format specification is used. No default.
nbody=
Size of one snapshot . At least one of nbody= and nsnap= needs to be given. No default.
nsnap=
Number of pieces to cut a snapshot into. No default.
times=
Times to select. default: all.

Example

The following example splits a 1000 body snapshot in pieces of 250 bodies, and views the 2nd piece:
  % mkplummer p1000 1000
  % snapsplit p1000 p1000.split nbody=250
  % snapplot p1000.split times=#2

See Also

snapmerge(1NEMO)

Files


~src/nbody/trans    snapsplit.c

Author

Peter Teuben

Update History


27-Jan-94    V1.0 Created    PJT


Table of Contents