Giter VIP home page Giter VIP logo

sky-gui's Introduction

Graphical User Interface (GUI) for models of skylight GitHub top language GitHub license GitHub last-commit Build Status

Rendered GUI

This (Python-based) GUI allows for interactive exploration of the skylight information provided by the different models. The GUI is based on the one implemented by Vévoda et al. (2022) for their Prague Sky Model (original C++ code here). There are three available datasets that work with this model, which can be downloaded form here:

Installation

You can easily install the package by using pip as:

pip install git+https://github.com/evgkanias/sky-gui.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. Install the skylight package by using the instructions from here, or run:
pip install skylight
  1. Clone this repo.
mkdir ~/src
cd ~/src
git clone https://github.com/evgkanias/sky-gui.git
cd sky-gui
  1. Install the required libraries.
    1. using pip :

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

      conda env create -f environment.yml
      
  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.

Run the graphical user interface (GUI)

To run the GUI, open a Python terminal and run the below.

from skylight_gui import SkyModelGUI

gui = SkyModelGUI()
gui()

Alternatively, go to the examples directory and run the script that opens the graphical environment.

cd examples
python run_gui.pyw

This will open the GUI which should look like this:

Initial GUI

By clicking the file-name filed, you can choose the dataset file, which will load automatically. Once loaded, you can click "Render" (or choose the auto-update option) and this will print an image of the sky radiance, sun radiance, degree of polarisation, transmittance, or angle of polarisation (depending on the rendering mode), as shown below:

Rendered GUI

By clicking the saving file-name, you can define the file-name and type of data you want to save. Theses are:

  • Image file (PNG or JPEG)
  • Raw data (CSV or EXCEL)

The raw data option will save the data of the chosen mode but for all the available wavelengths and the extracted visible light (RGB).

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.

sky-gui's People

Contributors

evgkanias avatar

Stargazers

yihong wu avatar

Watchers

 avatar  avatar

sky-gui's Issues

Crashing issue on Ubuntu (22.04.3 LTS)

Need assistance with application crashing issue after loading .dat file

Dear Evripidis Gkanias;

I am reaching out to seek your expertise and guidance regarding a problem I am facing with your application. Firstly, I want to express my appreciation for the effort you have put into creating such an impressive app.

I followed the installation steps provided in the README file and was able to successfully launch the application. However, I encountered an issue where the application closes abruptly after loading a .dat file. To provide some context, here are the steps I followed:

Navigated to the relevant directory:

(sky) xxx@xxx:~/Documents/Python/sky/src/sky-gui/examples$ python run_gui.pyw

Selected the downloaded model within the GUI.

Despite seeing a loading message on the GUI, it only remains visible for a few seconds before closing unexpectedly.

In my terminal, I noticed that it displays a "Killed" message.

I kindly request your assistance in troubleshooting this issue. Could you please provide any insights or suggestions that may help me resolve this problem? Your expertise would be greatly appreciated.

Thank you in advance for your time and support.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.