The program pdbinertia calculates the principal moments of inertia for the atoms in a standard pdb file. By default the program writes the moments of inertia to standard output. Optionally, the program can output a new pdb file in which the molecule is translated so that its center of mass is located at the origin and rotated so that the moments of inertia are aligned with the Cartesian axes. At present, the program only reads lines starting with the 'ATOM' keyword and only recognizes the atoms H, C, N, O, P, S.
Usage: pdbinertia [-rt] infile.pdb [outfile.pdb]