> Yes! It actually is tau_c, some people use tau_c and others use tau_m.
ok, for what follows assume that it is all nonsense, I don't have the time
right now to validate it :
When you run carma with "carma -v -fit ...", it produces a file named
'carma.fit-rms.dat' which in-between other things contains the rotation
matrix and the translation vector needed to superimpose the frame of
interest to the reference frame (by default the first). To calculate tau_c
you need to calculate the pure rotational offset between the (i) frame and the
frame of reference. This angle is the κ (kappa) angle in the polar angle
convention. So the problem is to convert the rotation matrix to the polar
angles and only keep (κ).
This is possibly easy : The rotation angle (κ) can be derived from the
trace of the rotation matrix :
Trace = R11 + R22 + R33 = 1 + 2 cos( κ )
κ = acos( (R11 + R22 + R33 - 1) / 2 )
To calculate this only once, is a one-liner :
awk 'function acos(x) { return atan2(sqrt(1-x*x), x)} {print acos(($3+$7+$11-1)/2)}' carma.fit-rms.dat
which returns (κ) in rad as a function of frame, using as reference the
first frame.
The thing is that what you want is not one run using as reference the first
frame, but a whole set of runs to calculate averages. This calls for a
small perl script to run carma several times using each time a different
frame of reference.
Verify that all these are correct and make sense, and I think I could find
the time to write the script sometime tomorrow.