This HTML automatically generated with rman for NEMO
Table of Contents
snapnear - find a particle nearest to a given point in a snapshot
snapnear
[parameter=value]
For a given set of body variables, display
the phase space coordinates of the closest one matching.
The following
parameters are recognized in any order if the keyword is also given:
- in=
- Input file (snapshot) [???]
- vals=
- Values of the things to compare. The
number of vals= must match the number of options= given
- options=
- Things
to compare [x,y,z]
- times=
- Times to select snapshot [all]
Here
is a contrived example of finding the last particle
mkplummer - 100 seed=123 | snapnear - -0.65,-0.93,-1.81
-0.654517 -0.925513 -1.80847 0.145817 -0.27767 0.298678 99 0.00654808
A possible future change: a better way would be to output a snapshot sorted
by the distance. This way using snapmask(1NEMO)
could also be used to select
the most nearby, or for example the 10 most nearby and average their properties,
etc.
snapnear snap - 0,0,0 | snapprint - | head -4
snapprint(1NEMO)
, snapmask(1NEMO)
, snapshot(5NEMO)
Peter
Teuben
22-Jul-20 V0.1 Drafted PJT
Table of Contents