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)
 return data

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 ) return data
read coord trans struct tag .