This HTML automatically generated with rman for NEMO
Table of Contents

Name

snapkey - (re)assign keys to a snapshot

Synopsis

snapkey [parameter=value]

Description

Assign (new) key to a snapshot. The current version was a quick hack, and can initialize the key using a series of integers using the keys= keyword. The more flexible key= keyword allows for more complex bodytrans(3NEMO) expressions.

Parameters

The following parameters are recognized in any order if the keyword is also given:
in=
input (snapshot) file [???]
out=
output (snapshot) file [???]
keys=
Manually supply all keys. Needs to be exactly the same amount as the number of particles in the snapshot.
keyfile=
ascii table with keys [] -- not implemented yet
key=
General bodytrans(3NEMO) integer expression computing the key.

Examples

The following example assigns different keys to the particles, using a nemoinp(3NEMO) style :: notation:
    mkplummer snap1  200
    snapkey snap1 snap2 2::100,1::100
    snapsort snap2 snap3 key
    snapkstat snap3
    ->   select=0:99,100:199
    glnemo snap3 select=0:99,100:199
or:
    glnemo snap3 ‘snapkstat snap3‘
    
Although the keyfile= does not work yet, the following NEMO command line trick also works, following this example:
    nemoinp 2::100,1::100 > key1
    snapkey snap1 snap2 @key1
    snapsort snap2 snap3
An example using skid:
    mkplummer p100 100
    snapstack p100 p100 p200 10,0,0 -2,0,0
    snaptipsy p200 p200.tipsy
    skid -tau 1 -o p200.a < p200.tipsy
    tail +2 p200.a.grp > p200.keys
    snapkey p200 - @p200.keys | snapsort - p200k key
    glnemo2 p200k ‘snapkstat p200k‘

See Also

snapkstat(1NEMO) , snapmstat(1NEMO) , snapmask(1NEMO) , snapshot(5NEMO)

Author

Peter Teuben

Update History


17-feb-2020    V0.1 quick hack        PJT


Table of Contents