It's a dockerised version of pySunlight program.
pySunlight-docker is one repository of the Sunlight project, including :
Clone the repository.
git clone https://github.com/VCityTeam/pySunlight-docker.git
-
Copy and rename .env.example to . env.
-
Adapt the configuration to your needs. Here is a full list of all options available :
Arguments | Description | Example |
---|---|---|
START_DATE | Start date of sunlight computation | 403224 |
END_DATE | End date of sunlight computation | 403248 |
LOG_LEVEL | Provide logging level depending on logging module | DEBUG, INFO, WARNING, ERROR, CRITICAL |
INPUTS_FOLDER | Inputs folder containing 3D Tiles use for sunlight computation | ./inputs |
OUTPUTS_FOLDER | Outputs folder containing 3D Tiles with Sunlight Result in batch table | ./outputs |
OPTIONAL_ARGS | Optional arguments (compute aggregate...) | --with-aggregate |
- Create two folders named
inputs
andoutputs
. Place your 3DTiles in the inputs folder (it can be in a subfolder).
-
Build pySunlight docker-compose :
docker compose build
-
Run the container with :
docker compose up
-
Build pySunlight DockerFile :
docker build -t pysunlight --file Context/Dockerfile .
-
Run dockerfile with .env file :
docker run -v ./inputs:/inputs -v ./outputs:/outputs --env-file .env pysunlight
or run docker file with arguments :
docker run -v ./inputs:/inputs -v ./outputs:/outputs -e START_DATE=403224 -e END_DATE=403248 -e LOG_LEVEL=DEBUG -e OPTIONAL_ARGS=--with-aggregate pysunlight