Published April 6, 2025
| Version v0.4.1
Software
Open
ir: Functions to handle and preprocess infrared spectra
Creators
Description
Bug fixes
New functions
ir_scale()
: Function to scale intensity values in spectra, similar tobase::scale()
. Intensity values are scaled for the same x axis values.ir_as_ir.ir_flat()
: Conversion ofir_flat
objects toir
objects.ir_as_ir.hyperSpec()
: Conversion ofhyperSpec::hyperSpec
objects toir
objects.ir_as_ir.Spectra()
: Conversion ofChemoSpec::Spectra
objects toir
objects.ir_identify_empty_spectra()
: Identifies rows in anir
object with empty spectra (former internal functionir_check_for_empty_spectra()
).ir_sample_prospectr()
: Wrapper function to use sampling algorithms implemented in the 'prospectr' package directly with 'ir' objects.
Improvements
ir_correct_atmosphere()
has a new parameterreturn_contribution
which allows to return the contribution ofref
to each spectrum inx
.ir_normalize()
has three new methods to normalize spectra:- With
method = "area_absolute"
, all intensity values will be divided by the sum of the absolute intensity values at all wavenumber values of the spectrum. - With
method = "vector"
, all intensity values will be divided by the norm of the intensity vector (vector normalization). - With
method = "snv
", a Standard Normal Variate correction will be performed.
- With
ir_bc_rubberband()
has an additional parameter to allow imputation of the first and last value in a spectra to avoid artifacts which may happen during baseline correction with the rubberband algorithm.- All functions now fully support empty spectra.
- Several dependencies in
Imports
have been moved toSuggests
. - Efficiency of several functions has been improved.
Files
henningte/ir-v0.4.1.zip
Files
(2.6 MB)
Name | Size | Download all |
---|---|---|
md5:4ab5912a864fe6784f47de9537511780
|
2.6 MB | Preview Download |
Additional details
Related works
- Is supplement to
- Software: https://github.com/henningte/ir/tree/v0.4.1 (URL)
Software
- Repository URL
- https://github.com/henningte/ir
- Programming language
- R
- Development Status
- Active