From: Richard Swenson (swenson_at_hec.utah.edu)
Date: Mon Jun 11 2007 - 10:23:57 CDT

Hi All,

I am wondering if anyone knows of an efficient way to select the closest
atom of a given type to a reference atom. Something like this would be
great:

atomselect top "name P and nearest index 4000"

where the keyword nearest selects the phosphorus atom (P) closest to the
atom with the index 4000.

Thanks for you help,
Richard