Re: Combining trajectories

From: Peter Varnai <>
Date: Wed 28 Mar 2001 10:56:58 +0200 (CEST)

Ptraj can combine trajectories with the following commands:
trajin one.trj
trajin two.trj
[some operations like strip etc]
trajout three.trj

But this file will include the box size after each coord sets,
which carnal and visualization programs don't like, so you should
remove them with something like awk:
(((NR-1)%236!=0) {print($0)}' three.trj > three_nobox.trj

I must admit, I could not get carnal combine trajectories as it was
suggested in the examples:
STREAM s1 a1.trj a2.trj a3.trj;

due to segmentation fault...

I hope this helps!

Peter Varnai

PS: have you tried the unix merge command to combine big files or
    cat file1 file2 > file3
Received on Wed Mar 28 2001 - 00:56:58 PST
Custom Search