From: Rogan Carr (rogan_at_ks.uiuc.edu)
Date: Wed Apr 22 2009 - 11:30:49 CDT

Hi Max,

Try selecting a width around x, rather than an exact x.

Rogan

On Apr 22, 2009, at 6:09 AM, Max wrote:

>
> Hi all,
>
> I tried to select atom indexes from their coordinates (x) but I
> could not.
> Am I doing anything wrong?
> Here's an example:
>
>> % set sel [atomselect 1 all]
> atomselect32
>> % set x [$sel get {x}]
> -9.0 -8.36200046539 -9.02799987793 -10.0799999237 -9.35200023651
> -10.7600002289 -10.4099998474 -12.0799999237 -11.1099996567
> -13.029999733
> -12.7399997711 -10.3599996567 -11.9200000763
>
> Now I tried to select the atom index from one of its coordinates and
> got
> nothing.
>
>> % set p [atomselect 1 "x = -8.36200046539"]
> atomselect33
>> % $p get index
>> %
>
> Thanks
>
> Max