def _read_3(fid):
""" Read 3 byte integer from file
"""
data = np.fromfile(fid, dtype=np.uint8, count=3).astype(np.int32)
out = np.left_shift(data[0], 16) + np.left_shift(data[1], 8) + data[2]
return out
source_estimate.py 文件源码
python
阅读 37
收藏 0
点赞 0
评论 0
评论列表
文章目录