This is the first release of package ‘ooacquire’ . This package allows the acquisition of spectral data from spectrometers from Ocean Optics connected through the OmniDriver run-time, which is available at no cost from Ocean Optics. The current version implements several corrections and measuring protocols unavailable elsewhere in a single modular framework. Some of these cannot be used off-the-shelf as they require the characterization and calibration of each individual spectrometer, to obtain usable values for constants. However, once these constants are available they can be passed as data arguments without need to modify the package itself. Functions are provided for spectral irradiance, spectral transmittance and spectral reflectance measurements. As transmittance and reflectance measurements are normally done relative to reference objects the calibration requirements are less involved than for spectral irradiance. Continue reading
Add functions sun_elevation(), sun_zenith_angle() and sun_azimuth().
Add convenience functions trim2overlap() and extend2extremes().
Add print() methods for instr_desc and instr_settings classes.
Change threshold for automatic use of hinges when calculating summaries, so that hinges are used by default in more cases.
Allow lists of length zero as argument to w.band, and treat them as equivalent to NULL.
Make argument span = NULL behave in the same way in peak and valley related summary functions as it has for some time in statistics in package ‘ggspectra‘.
Fix bug in the range check for counts per second which triggered warnings too easily.
Change scaling of D2 and FEL spectra so that they are expressed in W m-2 nm-1.
Improve handling of annotations parameter in plot() methods.
Add functions color_chart() and black_or_white().
Add statistics stat_wb_box() and stat_wb_column() with "rect" as default geometry and stat_wb_hbar() with "errorbarh" as default geometry .
Change default geometry from "rect" to "text" in all the summary statistics for spectra.
Update stats with "text" as default geometry to use an additional variable BW.color computed by function black_or_white() as default mapping for color.
As default geometries and color mapping have changed, this update can break existing code. Changes to plot() methods are backwards compatible but default color of some text labels has changed from "white" to "black" to improve readability, and fewer peaks and valleys are highlighted by default. In addition more ticks marks are used on the wavelength axis.
Fix minor bugs in handling of color mapping.