Sign inSign up

vcity/pysunlight

By vcity

•Updated about 3 years ago

Light pre-calculation based on real data (urban data and sun position) with 3DTiles.

Image
0

977

vcity/pysunlight repository overview

⁠About The Project

It's a dockerised version of pySunlight⁠ program.

pySunlight-docker is one repository of the Sunlight project, including :

⁠Getting Started

⁠Configure

  1. Adapt the configuration to your needs. Here is a full list of all options available :

    • START_DATE: 403224 (Start date of sunlight computation)
    • END_DATE: 403248 (End date of sunlight computation)
    • LOG_LEVEL: DEBUG, INFO, WARNING, ERROR, CRITICAL (Provide logging level depending on logging module⁠)
    • INPUTS_FOLDER: ./inputs (Inputs folder containing 3D Tiles use for sunlight computation)
    • OUTPUTS_FOLDER: ./outputs (Outputs folder containing 3D Tiles with Sunlight Result in batch table)
    • OPTIONAL_ARGS: --with-aggregate (Optional arguments (compute aggregate...))
  2. Create two folders named inputs and outputs. Place your 3DTiles in the inputs folder (it can be in a subfolder).

⁠Run

Given the following environment file :

START_DATE=403224
END_DATE=403248
LOG_LEVEL=DEBUG
INPUTS_FOLDER=./inputs
OUTPUTS_FOLDER=./outputs
OPTIONAL_ARGS=--with-aggregate

Run dockerfile with .env file :

docker run -v ./inputs:/inputs -v ./outputs:/outputs --env-file .env vcity/pysunlight

or run docker file with arguments :

docker run -v ./inputs:/inputs -v ./outputs:/outputs -e START_DATE=403224 -e END_DATE=403248 -e OPTIONAL_ARGS=--with-aggregate -e LOG_LEVEL=DEBUG  vcity/pysunlight

Tag summary

Content type

Image

Digest

sha256:4b2fff972…

Size

751.5 MB

Last updated

about 3 years ago

docker pull vcity/pysunlight