From: Axel Kohlmeyer (
Date: Mon Apr 11 2011 - 16:47:48 CDT

On Mon, Apr 11, 2011 at 4:53 PM, Vamsee Voora <> wrote:
> Hello VMD community,
> I have about 100 gaussian cube files and would like to generate a trajectory
> using all these files and visualize the changes in charge density.
> Therefore, either I would need to combine all these files or write a script
> to combine them.
> I did a simple concatenation of files using cat 001.cube 002.cube >>
> traj.cube which obviously doesn't work. So, can you please tell me how to
> combine these files, or the format I should use in order to visualize them

you have to load them with a loop, one at a time and
then you have to use a script to swap the density data set
when you switch to a new frame.

check out section 7.6 in this document that describes a similar case
with data files generated by CPMD.

and have a look at this script.

...and you better do this on a machine with lots of RAM. ;)


> .
> Thankyou and I will appreciate your help.
> Vamsee
> Vamsee Voora
> Eberly 332
> Ken Jordan's Group:
> Department of Chemistry
> University of Pittsburgh
> PA 15260

Dr. Axel Kohlmeyer
Institute for Computational Molecular Science
Temple University, Philadelphia PA, USA.