raman-spectrum
v1.0.1
Published
[![NPM version][npm-image]][npm-url] [![Test coverage][codecov-image]][codecov-url] [![npm download][download-image]][download-url]
Readme
raman-spectrum
Installation
$ npm install --save raman-spectrum
Usage
import RamanSpectrum from 'raman-spectrum';
let analysis = RamanSpectrum.fromJcamp(jcamp);When loading an RamanSpectrum from Jcamp we will systematically add 2 new variables:
- a: containing the absorbance
- t: containing the percent transmittance
In order to calculate those 2 variables we will check the Y label. If it contains transmittance we calculate absorbance, if it contains absorbance we calculate transmittance. For transmittance we also check for the presence of a '%' sign.:w
