Personal tools
You are here: Home Using MMTK MMTK example scripts Trajectory handling Averaging over a trajectory
Document Actions

Averaging over a trajectory

by Konrad Hinsen last modified 2007-02-23 12:35
dcd_export.py
# Conversion of an MMTK trajectory to DCD format (CHARMM/XPlor).
# A PDB file with the same atom order is created at the same time,
# because otherwise it would be impossible to interpret the data
# in the DCD file.
#

# Note: In order to create the trajectory file "bala1.nc" which is
#       read by this example, you must run the example
#       MolecularDynamics/protein.py!
#

from MMTK import *
from MMTK.Trajectory import Trajectory

from MMTK.DCD import writeDCDPDB


trajectory = Trajectory(None, "bala1.nc")
universe = trajectory.universe

writeDCDPDB(trajectory.configuration, 'bala1.dcd', 'bala1.pdb')

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: