https://github.com/lgsinnovations/sigfile
Module to read signal data from files
https://github.com/lgsinnovations/sigfile
digital-signal-processing dsp file-parser javascript matlab parsing
Last synced: 3 months ago
JSON representation
Module to read signal data from files
- Host: GitHub
- URL: https://github.com/lgsinnovations/sigfile
- Owner: LGSInnovations
- License: apache-2.0
- Created: 2018-04-25T01:45:02.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T03:26:23.000Z (over 2 years ago)
- Last Synced: 2025-03-23T23:14:13.979Z (3 months ago)
- Topics: digital-signal-processing, dsp, file-parser, javascript, matlab, parsing
- Language: JavaScript
- Homepage: https://lgsinnovations.github.io/sigfile
- Size: 9.39 MB
- Stars: 4
- Watchers: 7
- Forks: 3
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
SigFile
======================[](https://opensource.org/licenses/Apache-2.0) [](https://travis-ci.org/LGSInnovations/sigfile) [](.github/CONTRIBUTING.md#pull-requests) [](https://badge.fury.io/js/sigfile) [](https://codecov.io/gh/LGSInnovations/sigfile)
SigFile provides MATLAB file parsing and XMIDAS Bluefile parsing in JS.
## Installation
```
npm i sigfile
```or
```
yarn add sigfile
```## Example
### Extracting the header from a Bluefile
```javascript
const bluefile = require('sigfile').bluefile;
const fs = require('fs');fs.readFile('./tests/dat/ramp.tmp', function(err, buf) {
const header = new sigfile.BlueHeader(buf.buffer);
console.log(header);
});
```or
```javascript
import { readFile } from 'fs';
import { bluefile } from 'sigfile';readFile('./tests/dat/ramp.tmp', (err, buf) => {
const header = new bluefile.BlueHeader(buf.buffer);
console.log(header);
});