Skip to content

smartaquametering/uv-vis-nir-spectrum

Repository files navigation

uv-vis-nir-spectrum

NPM version Test coverage npm download

Installation

$ npm install --save uv-vis-nir-spectrum

Usage

import SPD from 'uv-vis-nir-spectrum';

let analysis = SPD.fromJcamp(jcamp);

When loading an UV/VIS/NIR Spectrum from Jcamp we will systamatically 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

License

MIT

About

Common package to deal with spectral analysis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published