读写qda文件
qdafile的Python项目详细描述
qdafile是一个python库,用于读取和编写kaleidagraph(tm)版本3.x QDA数据文件。
kaleidagraph是Abelbeck Software的注册商标。
QDAFILE已不再积极开发。
Author: | Christoph Gohlke |
---|---|
License: | 3-clause BSD |
Version: | 2019.1.24 |
修订版
- 2019.1.24
- 更新版权年。
示例
>>> from qdafile import QDAfile >>> QDAfile().write('_empty.qda') >>> QDAfile( ... [[1.0, 2.0, 0.], [3.0, 4.0, 5.0], [6.0, 7.0, 0.]], ... rows=[2, 3, '2'], ... headers=['X', 'Y', 'Z'], ... dtypes=['>f8', '>i4', '>f4'], ... ).write('_test.qda') >>> qda = QDAfile('_test.qda') >>> qda.headers[2] b'Z' >>> qda[2, :qda.rows[2]] array([ 6., 7.])