try pytraj
online:
# load MDAnalysis
from MDAnalysis import Universe
from MDAnalysisTests import datafiles
# create Universe in MDanalysis
universe = Universe(datafiles.GRO, datafiles.XTC)
universe.trajectory
# need to save a pdb file which will be used as Topology for pytraj
# you don't need to do this step if you already have a pdb file
all_atoms = universe.select_atoms('all')
all_atoms.write('pdb_0.pdb')
# load pytraj
import pytraj as pt
# iterate Universe to get coordinates
# convert to numpy with dtype=f8 (double precision)
import numpy as np
coords = np.asarray([all_atoms.coordinates() for frame in universe.trajectory], dtype='f8')
coords.shape, coords.dtype
# create pytraj's Trajectory
traj = pt.Trajectory(xyz=coords, top='pdb_0.pdb')
traj, traj.xyz.shape, traj.xyz.dtype
# perform some calculation
pt.center_of_geometry(traj)