Get number of timesteps from DCD via script

From: Bjoern Olausson (
Date: Mon Feb 07 2011 - 06:52:39 CST


I started to use some TCL-Scripting with NAMD for pair interaction energy

To make things more convenient and more generic, I was wondering if it is
possible to get some of these information from the DCD:
1) overall number of coordinate sets (timesteps)
2) write out frequency (dcdfreq)
3) first time step in dcd
4) last time step in dcd

well, 1) could be obtained from 3) and 4) but why the detour if there could be
a direct way ;-)

And if someone could recommend a good TCL and/or NAMD scripting tutorial,
please let me know.

Thanks a lot.

Bjoern Olausson
Martin-Luther-Universität Halle-Wittenberg 
Fachbereich Biochemie/Biotechnologie
Kurt-Mothes-Str. 3
06120 Halle/Saale
Phone: +49-345-55-24942

This archive was generated by hypermail 2.1.6 : Mon Dec 31 2012 - 23:19:47 CST