Skip to main content

A package providing radiance, polarisation, and transmittance information from the daylight.

Project description

The skylight project GitHub top language GitHub license GitHub last-commit Build Status

vevoda-2022-teaser

This Python package implements three models that provide skylight information.

1. The Prague sky model

This model (proposed by Vévoda P. et al., 2022; original C++ code here) interpolates the skylight properties by using stored data for a range of parameters, and it does not include data for the angle of polarisation (this is calculated by using the analytical solution).

prague-sky-model

There are three available datasets that work with the Prague Sky Model, which can be downloaded form here:

2. Analytic sky model

This model (proposed by Wilkie A. et al., 2004; and Preetham A. J. et al., 1999) includes radiance and polarisation information.

analytic-sky-model

3. Uniform model

This model provides the same information for any sky conditions and viewing directions, and it could be used as a baseline model.

uniform-sky-model

Installation

You can easily install the package by using pip as:

pip install git+https://github.com/evgkanias/sky.git

Alternatively you need to clone the GitHub repository, navigate to the main directory of the project, install the dependencies and finally the package itself. Here is an example code that installs the package:

  1. Clone this repo.
mkdir ~/src
cd ~/src
git clone https://github.com/evgkanias/sky.git
cd sky
  1. Install the required libraries.
    1. using pip :

      pip install -r requirements.txt
      
    2. using conda :

      conda env create -f environment.yml
      conda activate sky-env
      
  2. Install the package.
    1. using pip :
      pip install .
      
    2. using conda :
      conda install .
      

Note that the pip project might be needed for the above installation.

Graphical User Interface (GUI)

If you prefer to use a graphical user interface for this package, there is a separate package that you can install and use. This is named the sky-gui and it allows for interactive exploration of the skylight properties for the different models. However, in this version, only the Prague Sky Model is supported.

gui-teaser

Report an issue

If you have any issues installing or using the package, you can report it here.

Author

The code is written by Evripidis Gkanias.

Credits

The original (C++) code for this model was written by Petr Vévoda et al. from Alexander Wilkie's group in Charles University, which was part of their wide spectral range sky radiance model.

Copyright

Copyright © 2022, Evripidis Gkanias; Institute of Perception, Action and Behaviour; School of Informatics; the University of Edinburgh.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

skylight-1.0b2.tar.gz (64.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

skylight-1.0b2-py3-none-any.whl (65.8 kB view details)

Uploaded Python 3

File details

Details for the file skylight-1.0b2.tar.gz.

File metadata

  • Download URL: skylight-1.0b2.tar.gz
  • Upload date:
  • Size: 64.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.15

File hashes

Hashes for skylight-1.0b2.tar.gz
Algorithm Hash digest
SHA256 a8088989352dfa577c5a88a1bbec336292c3cd610b5d514d4e851fec8834673c
MD5 16a6d1a652bf603f2c174d13562f000f
BLAKE2b-256 d263b6a9c1f1bae8581b03070987c5d267e48d1779a8508f6309ed6224cde457

See more details on using hashes here.

File details

Details for the file skylight-1.0b2-py3-none-any.whl.

File metadata

  • Download URL: skylight-1.0b2-py3-none-any.whl
  • Upload date:
  • Size: 65.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.15

File hashes

Hashes for skylight-1.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 54f6c3fe5388fe31c3878e674df2622a30c02038e3f5a4cb42161b649228802b
MD5 45a6899fb31769e3ce447fa61736bf66
BLAKE2b-256 44ad3d3758ef12be7ef49f63fc6da481703bada2f274d74dc21036ba00f951a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page