prospectr
Miscellaneous Functions for Processing and Sample Selection of Spectroscopic Data
prospectr spent its biggest release in years fixing spectra it had been quietly mangling.
◆Recent moves
- 1mo ago
detrend() can run without a prior SNV transformation
A single-purpose release promoting the snv argument added in the previous version: polynomial detrending can now be applied as an independent pipeline step rather than always following SNV as in the original Barnes formulation. The default is unchanged.
View source ↗ - 2mo ago
Continuum removal, SNV and cochranTest corrected; readers stop leaking
The correction release the package needed. continuumRemoval() becomes unit-agnostic by deriving its hull offset from actual spectral resolution and stops producing NaN at zero-reflectance bands; standardNormalVariate() handles zero-variance rows silently; cochranTest() had been passing a bad argument to prcomp() and returning incorrect PC scores. readASD() and read_nircal() both had connection leaks, and readASD() was silently dropping spectra in one path. Note the entry title says 2.2.9 while the release is 0.2.9.
View source ↗ - 1y ago
read_nircal() sample ID field fix
A narrow fix to how the BUCHI NIRCal reader parses the sample ID field — the fourth reader-related patch in this feed.
View source ↗ - 3y ago
Non-UTF8 sample IDs no longer become NA
Sample IDs with non-UTF8 characters were being converted to NA by read_nircal(); they now map to their corresponding codes. Documentation moves to HTML5.
View source ↗ - 4y ago
kenStone() bug fix
A one-line release fixing a bug in the Kennard-Stone calibration sampling function, with no detail given on what it affected.
View source ↗ - 4y ago
read_nircal() execution failure fixed
A patch for a bug that prevented read_nircal() from running at all — part of the same run of instrument-reader repairs.
View source ↗