From: Axel Kohlmeyer (
Date: Mon Jul 06 2015 - 11:46:08 CDT

On Mon, Jul 6, 2015 at 11:18 AM, anu chandra <> wrote:
> Dear VMD users,
> I am working with membrane proteins. Here, I have coordinates of a membrane
> protein system with upper and bottom layer of water molecules. I would like
> to extract coordinates of upper layer of water molecules ( i.e water
> molecules along Z-direction 36.0 to 41.0) to a separate pdb file. Can any
> one help me to find a way to select molecules along a particular direction
> (axis), here Z-axis?.

try a selection of "same fragment as (water and z > 36.0 and z < 41.0)"


> Many thanks in advance
> Anu

Dr. Axel Kohlmeyer
College of Science & Technology, Temple University, Philadelphia PA, USA
International Centre for Theoretical Physics, Trieste. Italy.