def _read_old_pack(fid, tag, shape, rlims):
 offset = float(np.fromstring(fid.read(4), dtype='>f4'))
 scale = float(np.fromstring(fid.read(4), dtype='>f4'))
 data = np.fromstring(fid.read((tag.size - 8)), dtype='>i2')
 data = (data * scale)
 data += offset
 return data

def _read_old_pack ( fid , tag , shape , rlims ) : offset = float ( np . fromstring ( fid . read ( 4 ) , dtype = '>f4' ) ) scale = float ( np . fromstring ( fid . read ( 4 ) , dtype = '>f4' ) ) data = np . fromstring ( fid . read ( ( tag . size - 8 ) ) , dtype = '>i2' ) data = ( data * scale ) data += offset return data
read old pack tag .