3.0.0 • Published 2 years ago

spectra-processor v3.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
2 years ago

spectra-processor

NPM version build status Test coverage npm download

Introduction

This package allows to store spectra in an object and make many processing on them

It should be able to deal with large amount of large files and will automatically reduce the data size in order to keep reasonable size. This reduction of data is based on normalization parameters that includes:

  • from / to
  • normalization filters
  • final number of points
  • exclusion zones

The package will try by default to have less than 64 Mb of memory used and if the presence of original data yield to a higher amount it will remove the original data. This will have as consequence that you will not be able to change the normalization parameters.

Practically this means that if you have 1024 spectra of 65536 points and you normalize the data to 4096 points it can still be kept in memory.

  • Memory for spectra: 1024 65536 8 (double): over 64 Mb, original spectra will be removed
  • Memory for normalized: 1024 4k 8: 32 Mb: can be processed further

Installation

$ npm install --save spectra-processor

Usage

import SpectraProcessor from 'spectra-processor';

let spectrum = SpectraProcessor.addFromJcamp(jcamp);

API Documentation

License

MIT

3.0.0

2 years ago

2.11.0

2 years ago

2.10.1

2 years ago

2.10.2

2 years ago

2.10.0

2 years ago

2.9.0

2 years ago

2.8.1

2 years ago

2.7.0

2 years ago

2.8.0

2 years ago

2.5.2

3 years ago

2.5.1

3 years ago

2.5.0

3 years ago

2.4.0

3 years ago

2.3.0

3 years ago

2.2.0

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.5.2

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.2

4 years ago

1.2.0

4 years ago

1.0.0

4 years ago

0.0.2

5 years ago