try pytraj
online:
# supposed you want to extract coordinates from Gaussian run and load to pytraj
# load cclib
import cclib
gau = cclib.parser.Gaussian('GF2.log')
gau
go = gau.parse()
go
go.atomcoords.shape, go.atomcoords.dtype
# load to pytraj's Trajectory
# we need a pdb file (or an Amber topology file, or a PSF file or anything that pytraj/cpptraj supports)
# in this case, we only need to use an original pdb file from your Gaussian run
traj = pt.Trajectory(xyz=go.atomcoords, top='GF2.pdb')
traj
traj.xyz.shape, traj.xyz.dtype
{atom.element for atom in traj.top.atoms}
# get some insighful info, such as glycosidic angle vs time
chin = pt.calc_chin(traj)[0]
chin
%matplotlib inline
%config InlineBackend.figure_format = 'retina' # high resolution
import matplotlib
matplotlib.rcParams['savefig.dpi'] = 2 * matplotlib.rcParams['savefig.dpi'] # larger image
from matplotlib import pyplot as plt
plt.plot(chin)
plt.xlabel('frame number')
plt.ylabel('chi (degree)')
# pytraj.tools.read_gaussian_output is a simple wrapper of cclib
pt.tools.read_gaussian_output('GF2.log')