Learn R Programming

⚠️There's a newer version (0.4.30) of this package.Take me there.

photobiologyInOut

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 as well as reading data saved from data loggers.

Developing a package like this 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.

Warning

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.

Copy Link

Version

Install

install.packages('photobiologyInOut')

Monthly Downloads

257

Version

0.4.13

License

GPL (>= 2)

Maintainer

Pedro Aphalo

Last Published

March 20th, 2017

Functions in photobiologyInOut (0.4.13)

read_uvspec_disort

Read libRadtran's uvspec output file.
mspct2mat

Convert a collection of spectra into a matrix
photobiologyInOut-package

photobiologyInOut: Read Spectral and Logged Data from Foreign Files
read_oo_jazirrad

Read Absolute Irradiance File Saved by Ocean Optics' Jaz spectrometer.
read_oo_pidata

Read File Saved by Ocean Optics' Raspberry Pi software.
read_ASTER_txt

Read File downloaded from ASTER data base.
read_csi_dat

Read '.DAT' file(s) saved by modern Campbell Scientific loggers.
read_fmi_cum

Read daily cummulated solar spectrum data file(s).
read_tuv_usrout

Read TUV output file.
read_avaspec_csv

Read '.csv' File Saved by Avantes' Software for AvaSpec.
rspec2mspct

Convert "pavo::rspec" objects
hyperSpec2mspct

Convert 'hyperSpec::hyperSpec' objects
mat2mspct

Convert a matrix into a collection of spectra
read_uvspec_disort_vesa

Read libRadtran's uvspec output file from batch job.
read_FReD_csv

Read '.CSV' FReD database.
read_licor_prn

Read '.PRN' File(s) Saved by LI-COR's PC1800 Program.
colorSpec2mspct

Convert 'colorSpec::colorSpec' objects
read_macam_dta

Read '.DTA' File Saved by Macam's Software.
read_oo_ssirrad

Read File Saved by Ocean Optics' SpectraSuite.