Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 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 (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T03:26:23.000Z (almost 2 years ago)
- Last Synced: 2024-09-15T02:29:59.983Z (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: 8
- Forks: 3
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
SigFile
======================[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Build Status](https://travis-ci.org/LGSInnovations/sigfile.svg?branch=master)](https://travis-ci.org/LGSInnovations/sigfile) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](.github/CONTRIBUTING.md#pull-requests) [![npm version](https://badge.fury.io/js/sigfile.svg)](https://badge.fury.io/js/sigfile) [![codecov](https://codecov.io/gh/LGSInnovations/sigfile/branch/master/graph/badge.svg)](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);
});