A Python 3.4+ module for reading and writing Teac TAFFmat files.
TAFFmat is Teac's proprietary file format used to store data from their LX series and other data recorders.
According to the Teac "LX Series Recording Unit Instruction Manual":
TAFFmat (an acronym for Teac Data Acquisition File Format) is a file format composed of the following:
- a data file containing A/D (analog to digital) converted data. The file is binary format with the extension dat.
- a header file containing information such as recording conditions. The file is in text format with the extension hdr.
TAFFmat is a trademark of Teac Corporation.
The following data recorders store their data in the TAFFmat file format:
- Teac LX-10/20
- Teac LX-110/120
- Teac WX-7000 Series
- Teac es8
You can install taffmat either via the Python Package Index (PyPI) or from source.
To install using pip:
$ pip install taffmat
Source: https://github.com/questrail/taffmat
taffmat requires the following Python packages:
The following functions are provided:
change_slope(data_array, series, gain)
read_taffmat(input_file)
write_taffmat(data_array, header_data, output_base_filename)
write_taffmat_slice(data_array, header_data, output_base_filename, starting_data_index, ending_data_index
Contributions are welcome! To contribute please:
- Fork the repository
- Create a feature branch
- Add code and tests
- Pass lint and tests
- Submit a pull request
Use the following commands to create a Python 3.9.9 virtualenv using pyenv
and pyenv-virtualenv, install the requirements in the virtualenv named
taffmat
, and list the available Invoke tasks.
$ pyenv virtualenv 3.9.9 taffmat
$ pyenv activate taffmat
$ pip install -r requirements.txt
$ inv -l
taffmat is released under the MIT license. Please see the LICENSE.txt file for more information.