New update

photobiology 0.4.8

Handling of names improved in split_bands(), including fixing a bug.
Minor change in handling of wavelength boundaries in waveband() and new_waveband() to ensure consistency of returned values.
Minor corrections to documentation.

Backwards compatible, but very small changes in returned irradiances are possible.

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

New updates

photobiology 0.4.7

Several new function added. a)  is.waveband().

Vignette User Guide was updated with a description of the new functions added.

Backwards compatible.

photobiologygg 0.1.14

Minor bug in plot functions fixed. Function plot() for source.spct, filter.spct and reflector.spct objects, now accept waveband objects and NULL, in addition to a list of waveband objects. Now photobiology 0.4.7 is required.

The vignette was revised to demonstrate this.

NOTE: Sources, and Windows binaries for R 3.1.x, are now available in the repository. If you update, then, please, update all these packages, as they depend on each other.

New updates

photobiology 0.4.6

Several new functions added. a) Type conversion (by copy) as.source.spct(), as.filter.spct(), as.reflector.spct(), as.response.spct(), as.chroma.spct, as.generic.spct(). b) Object creation: source.spct(), filter.spct(), reflector.spct(), waveband(). c) computation: reflectance(), transmittance(). d) Setting attributes: setTimeUnit(), setTfrType(). e) Auxiliary functions: rmDerivedSpct(), spct.classes()

One function was removed. Function rbindlist() was deleted from the package, as it was redundant, and was causing problems. Please, be aware that you have to use rbindspct() when row-binding or stacking spectra.

Bugs fixed. class.spct() was returning sometimes wrong values. reflectance_spct() would crash. Overall consistency in the use of attributes was checked and a few problems corrected.

Vignette User Guide was updated with descriptions of the new functions added in this and recent versions, trying to make clear the use of spectral objects.

Backwards compatibility: source.spct objects have gained a time.unit attribute, and filter.spct objects a Tfr.type attribute. Objects created earlier will be missing these attributes. Some new functions need these attributes to function correctly. setTimeUnit() and setTfrType() can be used to update old objects if needed.

photobiologygg 0.1.13

Automatic plotting functions added. These functions implement the generic function plot() for source.spct, filter.spct and reflector.spct objects.

The vignette was updated with a few examples of the use of these functions, but the text still needs to be revised.

photobiologyLEDs 0.1.4

All source.spct objects re-created with the current version of package photobiology, so that they include the time.unit attribute.

Data for an UVB LED from TaoYuan was added.

The vignette was updated to include plots of all spectra. and to make use of the new plot functions from package photobiologygg.

photobiologyLamps 0.1.15

All source.spct objects re-created with the current version of package photobiology, so that they include the time.unit attribute.

The vignette was updated to make use of the new plot functions from package photobiologygg.

photobiologyFilters 0.1.13

All filter.spct objects re-created with the current version of package photobiology, so that they include the Tfr.type attribute.

The vignette was updated to make use of the new plot functions from package photobiologygg.

photobiologySun 0.1.4

All source.spct objects re-created with the current version of package photobiology, so that they include the time.unit attribute.

The vignette was updated to make use of the new plot functions from package photobiologygg.

NOTE: Sources, and Windows binaries for R 3.1.x, are now available in the repository. If you update, then, please, update all these packages, as they depend on each other.

data.table 1.9.4 available from CRAN

A new version of the data.table package was released by its maintainers to CRAN. This version should work with the current version of the photobiology packages. Users of my packages should update data.table. At the moment a binary package for OS X seems not to be available, until it becomes available, you will need to install from source on Mac computers, which requires instalation of Xcode and accepting its license. For Windows, binary is available from CRAN.

Update: photobiology 0.3.12

Package photobiology is now at version 0.3.12, which has only a very small fix compared to version 0.3.11 that was in the repository for only a few hours. The main change from version 0.3.10 is the addition of three functions: wb2spct(), wb2tagged_spct() and wb2rect_spct(), which useful for annotating plots. The vignette was also updated with a very brief explanation of their use. Contrary to the last three updates, this time I have created and uploaded to the repository binaries for both R 3.0.x and R 3.1.x. I have also uploaded R 3.0.x binaries for all other packages that were out-of-date.

I will continue building binaries for R 3.0.x until R 3.2.0 is released. However, I do the development and testing under 3.1.1 and will start testing under the pre-release R 3.2.x. A quick check seems to indicate that R 3.0.3 does not trigger any problems.

Update to package photobiologygg (0.1.6)

This update adds significant new functionality and new documentation.

New function:

  • annotate_waveband() is based on ggplot2’s annotate() but has a parameter which accepts a waveband object simplifying the annotation of spectra plotted with ggplot.

The User Guide has been updated with several examples of the use of this function and also of the use of the new functions in photobiology ver 0.2.19.

This version of photobiologygg requires the newest version of photobiology.

Please report any problems or suggestions to me.

Update to package photobiology (0.2.19)

This a major update with important new functionality added, but should still be backwards compatible with old code.

New functions:

  • w_length2rgb() calculation of equivalent RGB values for monochromatic light.
  • s.e.irrad2rgb() calculation of equivalent RGB values from spectral (energy) irradiance.
  • For both functions, the chromaticity coordinates data defaults to the proposed CIE 2006 standard (2 degrees), but others can be used.
  • The package now includes these data as chromaticity coordinates (CC) and colour matching functions (CMF), for both 2 degrees and 10 degrees.
  • min(), max(), range(), mean(), center_wl(), color() and labels() have now versions for wavebands. The values returned by color() and labels() are likely to change, the hue and luminance and text, respectively will change for certain in the next version as I am not totally happy with this first version.

The vignette User Guide was expanded to include several examples of the use of the new functions. The main use of most of these functions is in plot annotation, but may be also useful when information about wavebands needs to accessed.

I just uploaded source and binaries to the repository. Please, check the User Guide for more information and report back to me with any problems or suggestions.

New package photobiologyAll

The new package photobiologyAll loads and imports all packages in the photobiology suite. Does not add any new functionality but adds convenience at the cost of increased memory use and loading time. Added on 25.04.2014: I have decided to remove package photobiologygg from those packages loaded and imported by photobiologyAll, because it in turn imports ggplot2 which may not be needed and is quite large. I will most probably change the name of package photobiologygg as it can be useful also in other contexts. Continue reading

All the photobiology packages updated

For some of the packages the updates are minor, just cosmetic changes to documentation. However, I have made some important changes to the “photobiology” package, and this has required me to also make changes to some packages that depend on it. The values returned by previously existing commands should remain unchanged, except for “photobiologySensors” where one previously incomplete data set has been replaced.

Continue reading