
photobiologyInOut: Read Spectral and Logged Data from Foreign Files
Source:R/photobiologyInOut.r
photobiologyInOut-package.RdFunctions for reading, and in some cases writing, files in foreign formats. These include those containing data acquired with spectrometers autonomously and with their associated software and data output from well-known radiation transfer models simulating the daylight spectrum. Functions to import data downloaded from on-line repositories of spectral data, including reflectance and absorbance, are also provided. As irradiance data are frequently acquired with data loggers, and plants' responses to light and optical properties of plants are also relevant to photobiology, files from related instruments are also supported. Functions for exchange of spectral data with other R packages and functions wrapping selected functions in those packages, but accepting as arguments objects of classes from package 'photobiology' facilitate data exchange. Part of the 'r4photobiology' suite, Aphalo P. J. (2015) doi:10.19232/uv4pb.2015.1.14 .
Note
From version 0.4.4 the time zone (tz) used for decoding dates and times in files imported defaults to "UTC". In most cases you will need to pass the tz (or the locale) where the file was created as an argument to the functions!
Data acquisition
The support for Ocean Insight, formerly Ocean Optics, spectrometers in package 'photobiologyInOut' is limited to the import of data acquired with Ocean Optics' software as is. In contrast, package 'ooacquire', part of these same suite, makes it possible to control, modify settings and acquire spectral data from Ocean Optics spectrometers directly from within R. 'ooacquire' also supports the conversion of raw-counts data into physical quantities.
Warning!
Most of the file formats supported are not standardized, and are a moving target because of changes in instrument firmware and support software. In addition the output format, especially with models, can depend on settings that users can alter. So do check that import is working as expected, and if not, please please raise an issue and upload one example of an incorrectly decoded file.
References
Aphalo, Pedro J. (2015) The r4photobiology suite. UV4Plants Bulletin, 2015:1, 21-29. doi:10.19232/uv4pb.2015.1.14 .
Author
Maintainer: Pedro J. Aphalo pedro.aphalo@helsinki.fi (ORCID)
Authors:
Pedro J. Aphalo pedro.aphalo@helsinki.fi (ORCID)
Other contributors:
Titta K. Kotilainen (ORCID) [contributor]
Glenn Davis gdavis@gluonics.com [contributor]