Hi :)
I have a question to all the people who are familiar with C-code. How can I
read in the total number of frames in my *.xtc file? Especially when I do
the analysis somewhere in the middle?
E.g: I have a file with 100.000 frames. When I start the programm with
./program -f traj.xtc
then I
On 4/3/14, 10:10 AM, GtrAngus wrote:
Hi :)
I have a question to all the people who are familiar with C-code. How can I
read in the total number of frames in my *.xtc file? Especially when I do
the analysis somewhere in the middle?
E.g: I have a file with 100.000 frames. When I start the
Hi GtrAngus,
That's not possible, because the size of a frame is not fixed in XTC
format. You can get an estimate by dividing the size of the file by the
size of the first frame. That may not be accurate, though.
Cheers,
Tsjerk
On Apr 3, 2014 6:31 PM, GtrAngus map...@online.de wrote:
Hi :)
I have a question to all the people who are familiar with C-code. How can I
read in the total number of frames in my *.xtc file? Especially when I do
the analysis somewhere in the middle?
Are you using the XDR library or something else? In the XDR library there is a
way to get the status each
The xtc reading does this kind of guesswork seeking automatically, IIRC.
Mark
On Apr 3, 2014 10:12 PM, Tsjerk Wassenaar tsje...@gmail.com wrote:
Hi GtrAngus,
That's not possible, because the size of a frame is not fixed in XTC
format. You can get an estimate by dividing the size of the file
On 03.04.2014 16:10, GtrAngus wrote:
I have a question to all the people who are familiar with C-code. How can I
read in the total number of frames in my *.xtc file? Especially when I do
the analysis somewhere in the middle?
E.g: I have a file with 100.000 frames. When I start the programm with
Hi to all! :)
@ Mirco Wahab
It is a mixture of both, I guess. I do know the total number of frames in my
traj.xtc, it is 80.000. Furthermore, I am doing some averaging and other
stuff, so I need the total number of frames. Actually, I could write a
C-Code which is very very brute force, so I