ecl-logo Documentation

Absorbance

Absorbance[absorbanceSpectrum,wavelength]absorbance

returns the absorbance from a provided absorbanceSpectrum at the indicated wavelength.

Absorbance[absorbanceSpectrum,wavelength,blank]absorbance

returns the absorbance from a provided absorbanceSpectrum at the indicated wavelength, with the blank spectrum provided.

Details

  • If the blank spectrum is not used, the provided spectrum will be assumed to be already blanked
  • If an absorbance data object is provided as either input or as the blank spectrum, the relevant spectrum will be assumed to be in the field AbsorbanceSpectrum.
  • Input
    Output
    Messages
  • InvalidAbsorbanceThe provided absorbance spectrum or wavelength is invalid. Please ensure that the correct data format is provided.
    InvalidBlankOptionThe provided blank option of length `1` does not match the length of the absorbance spectra input (`2`). These lists must match in length in order to properly associate each spectra with its blank (or, provide a single blank to apply to all of the spectra).
    ListedBlankWithSingleInputThe Blank option was set to a list, but only one input spectrum was provided. Please provide either one blank with one input spectrum, or multiple input spectra with multiple blank spectra.
    WavelengthLowerBoundErrorThe provided minimum wavelength, `1`, is lower than the lowest wavelength in the given spectrum (`2`). Please ensure that the requested wavelength range is contained within the provided spectrum.
    WavelengthMismatchThe provided minimum wavelength, `1`, is larger than the max wavelength, `2`.
    WavelengthUpperBoundErrorThe provided maximum wavelength, `1`, is higher than the highest wavelength in the given spectrum (`2`). Please ensure that the requested wavelength range is contained within the provided spectrum.

Examples

Basic Examples  (5)

Extract the absorbance from a raw spectrum at a particular wavelength:

Extract a range of absorbances by providing a minimum and maximum wavelength:

A link can be provided:

A packet can be provided:

Provide an absorbance data from which the spectrum should be taken:

Additional Examples  (5)

Absorbance can be determined from multiple data objects at once:

Provide a blank spectrum to be subtracted from the input spectrum:

The blank can also be provided as a data object:

Provide a list of blank spectra to match up with a list of inputs:

The function is also listable over raw spectra:

Messages  (6)

InvalidAbsorbance  (1)

If absorbance spectrum or wavelength is invalid, the function will fail:

InvalidBlankOption  (1)

If the maximum wavelength is above the largest wavelength in the spectrum, the function will fail:

ListedBlankWithSingleInput  (1)

If a single spectrum is provided, the Blank option can't be a list:

WavelengthLowerBoundError  (1)

If the minimum wavelength is below the lowest wavelength in the spectrum, the function will fail:

WavelengthMismatch  (1)

If the minimum wavelength is larger than the maximumm, the function will fail:

WavelengthUpperBoundError  (1)

If the maximum wavelength is above the largest wavelength in the spectrum, the function will fail: