a script to extract velocity of atoms

Dear all

Is there a script to extract velocity of atoms of a file including many frames. Urgently need your help.

Thank you very much!