2024-12-12 00:33:31 +00:00
|
|
|
# Sunset Simulator
|
|
|
|
|
|
|
|
## Organization
|
|
|
|
|
|
|
|
The code is separated into two parts:
|
|
|
|
- GUI file: [app.py](app.py)
|
|
|
|
- "header" file: [skydome.py](skydome.py)
|
|
|
|
|
|
|
|
|
2024-10-18 04:15:25 +00:00
|
|
|
|
|
|
|
to use the gui first
|
|
|
|
- set up the environment
|
|
|
|
- run the code
|
|
|
|
|
|
|
|
|
|
|
|
## environment setup
|
2024-12-12 00:33:31 +00:00
|
|
|
### Windows
|
2024-10-18 04:15:25 +00:00
|
|
|
```
|
|
|
|
> python3 -m venv .venv
|
|
|
|
> venv\Scripts\activate
|
|
|
|
> pip install -r requirements.txt
|
|
|
|
```
|
|
|
|
|
2024-12-12 00:33:31 +00:00
|
|
|
### Linux/Mac
|
|
|
|
```
|
|
|
|
> python3 -m venv .venv
|
|
|
|
> source .venv/bin/activate
|
|
|
|
> pip install -r requirements.txt
|
|
|
|
```
|
2024-10-18 04:15:25 +00:00
|
|
|
|
|
|
|
## running the gui
|
|
|
|
|
|
|
|
```
|
|
|
|
> python app.py
|
|
|
|
```
|
2024-11-04 06:16:23 +00:00
|
|
|
|
|
|
|
Inside, you will need to
|
|
|
|
|
|
|
|
- select the environment
|
|
|
|
- choose the temperature (5 degrees is fine?)
|
|
|
|
- choose the pressure (720 to 780 mmHg)
|
|
|
|
- and select the location on the map (right click and "set as observer location")
|
2024-12-12 00:07:55 +00:00
|
|
|
- or override the altitude manually
|