Update

photobiology 0.6.6

A user reported that function day_night() was not vectorized as stated in the documentation. This bug has been fixed, and now day_night() and the new functions noon_time(), sunrise_time(), sunset_time(), day_length() and night_length() are all vectorized for the date parameter. The default tz for all the functions in now "UTC", to match the default time zone used to obtain the default for date. The former t parameter of day_night() has been renamed date for clarity. The former t parameter of sun_angles() has been renamed time for clarity and consistency of naming style. The parameter twilight in addition to character strings for standard definitions, now accepts a numeric value directly giving an angle, above or below the horizon.

Package lubridate is no longer imported, so to use functions from package lubridate in their own code, users must explicitly load it using library().

These changes, may break old user code! (but needed changes will be minor).

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

Updates

photobiology 0.6.3

Bug fix: long-standing error in twilight calculation in function day_night().
Bug fix: irrad(), e_irrad(), and q_irrad() return NA when spectral data contains NA values outside the range of waveband(s).

photobiologygg 0.3.2

Bug fix: plotting fails if a spectrum contains NA values in the plotted y variable.

photobiologySun 0.3.2

Add hourly spectral data for August in Helsinki.

photobiologyWavebands 0.3.1

Bug fix: R_FR_ratio() now uses "Smith10" giving 10 nm-wide bands. The returned value is different than in earlier versions, but follows closely the definition given by Prof. Harry Smith.

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

Updates (bug fixes!)

photobiology 0.5.18

Fixed a bug in rbinspct() that prevented row-binding some types of spectra.

photobiologyPlants 0.2.0

Fixed mistake in naming of phytochrome photoequilibrium functions. All functions in this group now start with Pfr_Ptot.

This bug fix is not backwards compatible!

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

Updates

photobiology 0.5.17

New options "photobiology.use.hinges" (NULL, TRUE, FALSE) with default NULL and "photobiology.auto.hinges.limit" (wavelength step in nm) with new default 0.5 nm. Default behaviour is changed both for a bug in irrad() functions where the limit was 1.1 nm instead of 0.7 nm and as a result of changing to a smaller default value. Existing and new options "photobiology.waveband.trim", "photobiology.use.cached.mult" are now used throughout.

Bug fix: in version 0.5.1x the behaviour of the product of a BSWF and a source spectrum was changed to return a response spectrum. This was not consistent with the idea that a BSWF is used for quantifying radiation rather predicting a biological response. The result should remain as radiation and continue to be expressed in energy or photon based units. This has been fixed. Starting from the current version, if the waveband is used with the '*' operator is a BSWF (tested with function is.effective() ) the resulting spectrum is tagged as being "effective". The irrad() methods for source.spct have been updated to ‘recognize’ effective spectral irradiance when supplied as input.

rbindspct() modified so that if at least one of the spectra in the list is of effective irradiance, but not all spectra have been calculated with the same BSWF and normalization, a factor named BSWF is added with the BSWFs retrieved from the spectra used as levels. The optional factor selected through parameter idfactor has now its levels always reflecting the order of the spectra in the input list, even when using a named input list of spectra. Several rather minor bugs were fixed, including improved handling of comments and attributes.

summary() methods for spectra have been updated to report the BSWF that have been used if source spectra contain effective spectral irradiances.

Long-standing unsolved problem partly fixed: interpolate_spct() now in most cases applies smoothing to the spectrum before attempting interpolation if the vector of output wavelengths has length > 1, but is sparser than then original spectral data.

A few inconsistencies in the formal parameters among similar functions were fixed by adding the missing parameters. Also some problems in the documentation for a few functions were fixed.

User guide updated.
Mostly backwards compatible, but some default values have changed to minimize errors at the expense of speed of computation. Also function is_effective(), which is most frequently but not always used internally was renamed is.effective(). The changed behaviour of operator * may also require small changes to user code.

photobiologygg 0.2.9

Preliminary support for plotting effective irradiance spectra. plot() methods now use options "photobiology.waveband.trim" and "photobiology.label.wavebands" as default if available. The default for trimming has changed to TRUE, as this seems not too dangerous as labels show when trimming has taken place.

User Guide updated.

Backwards compatible.

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