def _read_coord_trans_struct(fid, tag, shape, rlims):
    from ..transforms import Transform
    fro = int(np.fromstring(fid.read(4), dtype=">i4"))
    to = int(np.fromstring(fid.read(4), dtype=">i4"))
    rot = np.fromstring(fid.read(36), dtype=">f4").reshape(3, 3)
    move = np.fromstring(fid.read(12), dtype=">f4")
    trans = np.r_[np.c_[rot, move],
                  np.array([[0], [0], [0], [1]]).T]
    data = Transform(fro, to, trans)
    fid.seek(48, 1)  # Skip over the inverse transformation
    return data
Read coord trans struct tag
dataset/ETHPy150Open mne-tools/mne-python/mne/io/tag.py/_read_coord_trans_struct