defaultOptions

src/fromBruker.js

convert/export all the file with a Bruker structure like. It is a wrapper of brukerconverter the same options you can pass.

defaultOptions

formatDependentVariable

src/formatDependentVariable.js

a class for dependent variable

formatDependentVariable(data: any, numericType: numericType, options: object?): object
Parameters
data (any)
numericType (numericType) a number that correspond to a type of numeric used to store the components
options (object? = {}) an object with options (name, unit, quantityName, componentLabels, sparseSampling, application, description)
Name Description
options.name string? a name of the dependent variable
options.unit string? the unit of the dependent variable
options.quantityName string? a name of the quantity
options.componentLabels array? an array of labels for each component of the dependent variable
Returns
object: an dependent variable

formatLinearDimension

src/formatLinearDimension.js
formatLinearDimension(label: any, count: any, increment: any, options: any)
Parameters
label (any)
count (any)
increment (any)
options (any = {})

import object {re:[], im:[]} to component

fromReIm(reIm: object, from: number, to: number): array
Parameters
reIm (object) a reIm object to import
from (number) lower limit
to (number) upper limit
Returns
array: components

Returns the group delay for old Bruker NMR spectra

getDigitalFilterParameters(grpdly: any, dspfvs: any, decim: number, gspfvs: number): number
Parameters
grpdly (any)
dspfvs (any)
decim (number)
gspfvs (number)
Returns
number:

getNucleusFrom2DExperiment

src/utils/getNucleusFromMetadata.js

Returns a list of likely nuclei based on an experiment string This is really an hypothesis and should not be used

getNucleusFrom2DExperiment(experiment: string): Array<string>
Parameters
experiment (string)
Returns
Array<string>:

Returns an experiment string based on a pulse sequence

getSpectrumType(meta: any, info: any, options: any, pulse: string): string
Parameters
meta (any = {})
info (any = {})
options (any = {})
pulse (string)
Returns
string:

a number that correspond to a type of numeric

numericType

Type: number

a number that corresponds to a type of quantity

quantityType

Type: number