photobiology 0.8.10 (new functionality)

Add support for "when.measured" and "where.measured" attributes to spectral objects of all the classes defined in this package. Add methods setWhereMeasured(), getWhereMeasured(), setWhenMeasured() and getWhenMeasured(). The first two methods are compatible with the output of ggmap::geocode() and the last two with POSIXct objects as returned by many functions in package lubridate, such as lubridate::now() and lubridate::today(). All these methods are implemented for both generic_spct and derived classes, and generic_mspct and derived classes.

Implement methods to ‘get’ and ‘set’ attributes of summary objects of spectra with name, semantics and argument signatures identical to those used for spectra.

Revise print() method for spectra to include in the output the new attributes when available. Rewrite summary() methods and print() methods for spectral summaries. Now output parallels the output of the print() method for spectra.

Backwards compatible except for the changes to the format of the summary object returned for spectra. However, the structure of such objects was not documented and they are very rarely used in ways for which this would matter.

photobiologyInOut 0.4.0 (major rewrite with changes in functionality and naming)

This is a major update, not backwards compatible, as names and formal parameters of all functions have changed. Trimming is no longer supported (should be done as a separate operation).

The new "when.measured" attribute added to the classes defined in package photobiology, described above, is set automatically when this information is available in the read-in file.

Internally we now use package readr as much as possible, which should speed-up reading of files and also allow many different kinds of files like URLs to the handled.

The functions for Ocean Optics files now read the number of pixels from the file header rather than having this number hard coded, and hopefully will better adjust to different instruments and settings.

Functions for reading multiple spectra now return collections of spectra. (Functions that saved the spectral objects constructed from the data read from text files on disk back to disk as R dara files have been removed.)

New functions for reading daily spectral exposure data from files returned by models from FMI have been added.

New function for reading .csv files from Avantes‘ AvaSpec spectrometers added.

Not backwards compatible, all old user code making use of this package will need some rewriting. Such rewriting should be straightforward.

NOTE: Sources, and Windows binaries for R 3.2.x, are now available in the repository.

Share on

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.