photobiology 0.9.27

This update is in part the result of comparing the values returned by functions sun_angles() and day_night() to those returned by equivalent functions from other R packages and to the online NOAA Solar Calculator (considered the best implementation of Meuus astronomical algirithms, which are currently the most precise available). To see the whole story as it develops, please, have a look at my post describing these tests.

Changes from version 0.9.26, the most recent CRAN release, are:

  • Improve performance of sun_angles() and day_night() and implement Meuus algorithm for julian day. End result is slightly slower performance but higher precision and broader range of dates that are handled correctly.
  • Make sure functions work correctly when a tibble is passed as argument to parameter geocode. In addition tolerate address column being a factor.
  • Values returned by sun_angles() and day_night() have changed very slightly as a result of the improved julian day calculation.

Documentation web site at includes all help pages, with output from all examples, and vignettes in HTML format.
NOTE: The updated package is on its way to CRAN.

Please raise issues concerning bugs or enhancements to this package through Bitbucket

Share with

Leave a Reply