There is a newer version of the record available.

Published October 18, 2022 | Version v0.9

bluegreen-labs/skylight: skylight v0.9 (beta release)

Authors/Creators

  • 1. @bluegreen-labs

Description

The skylight package returns sky illuminance parameters for both the sun and the moon, for a given date/time and location. In addition, ancillary parameters such as sun and moon azimuth and altitude are provided. The code is an almost verbatim transcription of the work by Janiczek and DeYoung (1987), published in the US Naval observatory circular. An online copy of this manuscripts can be found on the internet archive (https://archive.org/details/DTIC_ADA182110).

Very few adjustments to the original code where made to ensure equivalency in results. As such, most of the naming of the subroutines and variables was retained. However, some changes were made to the main routine and subroutines to ensure vectorization of the code to speed up batch processing of data.

With time more detailed information will be added to all functions, including references to subroutine functions and more transparent variable names, while limiting variable recycling (a common practice in the original code base). The code delivers equivalent results with the programme certification values published in Table A of Janiczek and DeYoung (1987), as such all original limitations remain (see below).

Limitations

The sky illuminance model by Janiczek and DeYoung (1987) in skylight has some limitations:

  • Design specifications aimed for 0.5 degrees in angle, or two minutes of times. Last digits should be considered uncertain by one unit.
  • At latitudes less than 60 degrees, the model should agree with more refined calculations to within one or two minutes of time. For latitudes above this value the model can produce errors of up to four minutes.
  • In some circumstances calculated illuminance values might differ from real light levels of a factor 10 or more.
  • Strong coherence and proper time keeping is required, there is a strong requirement to provide dates in GMT, corrections based upon latitude (not civil time zone) should be executed before processing. No warnings are provided.

Yet, overall the model should provide a fast approximation where more computationally expensive models would only provide marginal benefits for most applications. For a full description of the model I refer to Janiczek and DeYoung (1987).

How to cite this package in your article

Koen Hufkens. (2022). bluegreen-labs/skylight: skylight: A Simple Sky Illuminance Model. Zenodo. https://doi.org/10.5281/zenodo.7222045, in addition reference the original work by Janiczek and DeYoung (1987)

Files

bluegreen-labs/skylight-v0.9.zip

Files (1.3 MB)

Name Size
md5:dcfb45d87cc319cda5370dd51278ab8e
1.3 MB Preview Download

Additional details

Related works