Package 'photobiologyInOut' provides functions for importing spectral data from diverse sources including instrument-specific files, as well as spectral data output by solar-radiation simulation models. It also includes functions for exchanging spectral data with other R packages. Package 'photobiologyInOut' complements other packages in the 'r4photobiology suite' by allowing reading and writing “foreign” spectral data.
Developing a package like is a never-ending task as I have only a limited sample of output files for testing and formats are quite variable. The functions may not work with different software or firmware versions used for acquiring spectral data from instruments. Even the format of files can depend on the current locale and operating system.
Please, see the r4photobiology web site for details on the suite.
The functions in this package work with the example files I have access to for testing, but they may not work with your own files as file formats vary.
PLEASE, BE VERY CAREFUL WHEN USING THIS PACKAGE. DO CHECK THAT UNITS USED IN THE IMPORTED FILE ARE THOSE EXPECTED BY THESE FUNCTIONS AND THAT THE VALUES ARE AS EXPECTED!
If they do not work with your files, they hopefully will be useful as examples for developing your own functions. If you develop new functions or improve the existing ones, please, do contribute them back to this project.
photobiologyInOut-package
(photobiologyInOut)We provide functions for importing data from some common brands and types of instruments.
read_avaspec_csv
read_licor_prn
(read_m_licor_prn)read_macam_dta
read_oo_jazirrad
(read_oo_jazdata)read_oo_pidata
read_oo_ssirrad
(read_oo_ssdata)We provide functions for importing spectral data from models we use. As the file format may vary depending on settings, these are mainly provided as examples.
read_fmi_cum
(read_m_fmi_cum)read_libradtran_vesa
read_tuv_usrout
mat2mspct
mspct2mat
colorSpec2mspct
(chroma_spct2colorSpec, colorSpec2chroma_spct, colorSpec2spct, mspct2colorSpec, spct2colorSpec)hyperSpec2mspct
(hyperSpec2spct, mspct2hyperSpec, spct2hyperSpec)rspec2mspct
(rspec2spct)