Dear all,
I have appended two .xtd trajectories using a script that was posted in a previous discussion:
my @docNames = ("c30u3-1.xtd","c30u3-2.xtd");
# Create a new trajectory
my \\\$xtd = Documents->New("T100.xtd");
# Go through each doc and add them to the xtd
foreach my \\\$docName (@docNames) {
my \\\$doc = \\\$Documents{"\\\$docName"};
\\\$xtd->Trajectory->AppendFramesFrom(\\\$doc);
\\\$doc->Close;
}
The problem merging the trajectories using this script is that the time of trajectories doesn't add sequentially. For example: the two trajectories I want to merge have 900 frames (900 ps) and the final trajectory has 1800 frames which is ok. The problem is that the time goes form 1 to 900 ps and after the first 900 ps it comes again from 1ps to 900 ps, instead of going form 1 to 1800 ps (you can see this clearly if you plot the density of the simulation). Does anybody have a best way of merging trajectories? Thanks!
Best,
Luis
