voxcity 0.6.30__py3-none-any.whl → 0.6.32__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of voxcity might be problematic. Click here for more details.
- voxcity/geoprocessor/mesh.py +3 -1
- voxcity/utils/visualization.py +2906 -2906
- {voxcity-0.6.30.dist-info → voxcity-0.6.32.dist-info}/METADATA +10 -5
- {voxcity-0.6.30.dist-info → voxcity-0.6.32.dist-info}/RECORD +7 -7
- {voxcity-0.6.30.dist-info → voxcity-0.6.32.dist-info}/WHEEL +0 -0
- {voxcity-0.6.30.dist-info → voxcity-0.6.32.dist-info}/licenses/AUTHORS.rst +0 -0
- {voxcity-0.6.30.dist-info → voxcity-0.6.32.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: voxcity
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.32
|
|
4
4
|
Summary: voxcity is an easy and one-stop tool to output 3d city models for microclimate simulation by integrating multiple geospatial open-data
|
|
5
5
|
License: MIT
|
|
6
6
|
License-File: AUTHORS.rst
|
|
@@ -247,14 +247,14 @@ kwargs = {
|
|
|
247
247
|
|
|
248
248
|
### 4. Get voxcity Output
|
|
249
249
|
|
|
250
|
-
Generate voxel data grids and corresponding building
|
|
250
|
+
Generate voxel data grids and a corresponding building GeoDataFrame:
|
|
251
251
|
|
|
252
252
|
```python
|
|
253
253
|
from voxcity.generator import get_voxcity
|
|
254
254
|
|
|
255
255
|
voxcity_grid, building_height_grid, building_min_height_grid, \
|
|
256
|
-
building_id_grid, canopy_height_grid, canopy_bottom_height_grid, land_cover_grid, dem_grid, \
|
|
257
|
-
building_gdf = get_voxcity(
|
|
256
|
+
building_id_grid, canopy_height_grid, canopy_bottom_height_grid, land_cover_grid, dem_grid, \
|
|
257
|
+
building_gdf = get_voxcity(
|
|
258
258
|
rectangle_vertices,
|
|
259
259
|
building_source,
|
|
260
260
|
land_cover_source,
|
|
@@ -265,6 +265,10 @@ building_gdf = get_voxcity(
|
|
|
265
265
|
)
|
|
266
266
|
```
|
|
267
267
|
|
|
268
|
+
### Interactive 3D Demo (Plotly)
|
|
269
|
+
|
|
270
|
+
- **Open interactive demo**: <a href="https://voxcity.readthedocs.io/en/latest/_static/plotly/voxcity_demo.html">Launch the Plotly 3D viewer</a>
|
|
271
|
+
|
|
268
272
|
### 5. Exporting Files
|
|
269
273
|
|
|
270
274
|
#### ENVI-MET INX/EDB Files:
|
|
@@ -301,6 +305,7 @@ from voxcity.exporter.obj import export_obj
|
|
|
301
305
|
|
|
302
306
|
output_directory = "output" # Directory where output files will be saved
|
|
303
307
|
output_file_name = "voxcity" # Base name for the output OBJ file
|
|
308
|
+
# export_obj signature: export_obj(array, output_dir, file_name, voxel_size, voxel_color_map=None)
|
|
304
309
|
export_obj(voxcity_grid, output_directory, output_file_name, meshsize)
|
|
305
310
|
```
|
|
306
311
|
The generated OBJ files can be opened and rendered in the following 3D visualization software:
|
|
@@ -372,7 +377,7 @@ solar_grid = get_global_solar_irradiance_using_epw(
|
|
|
372
377
|
# Adjust parameters for cumulative calculation
|
|
373
378
|
solar_kwargs["start_time"] = "01-01 01:00:00" # Start time for cumulative calculation
|
|
374
379
|
solar_kwargs["end_time"] = "01-31 23:00:00" # End time for cumulative calculation
|
|
375
|
-
solar_kwargs["output_file_name"] = '
|
|
380
|
+
solar_kwargs["output_file_name"] = 'cumulative_solar_irradiance' # Base filename for outputs (without extension)
|
|
376
381
|
|
|
377
382
|
# Calculate cumulative solar irradiance over the specified time period
|
|
378
383
|
cum_solar_grid = get_global_solar_irradiance_using_epw(
|
|
@@ -19,7 +19,7 @@ voxcity/generator.py,sha256=zJZSLcldMvfbRk2UGXzY25DJmJi1L4KZP0glPuMRFgg,69477
|
|
|
19
19
|
voxcity/geoprocessor/__init__.py,sha256=WYxcAQrjGucIvGHF0JTC6rONZzL3kCms1S2vpzS6KaU,127
|
|
20
20
|
voxcity/geoprocessor/draw.py,sha256=AZMWq23wxxDJygNloCbVzWAAr1JO7nC94umf9LSxJ5o,49248
|
|
21
21
|
voxcity/geoprocessor/grid.py,sha256=s64tCCY-pPiZjAWRWRJkBpb2FCkruOjq_nm1vD2unT8,77407
|
|
22
|
-
voxcity/geoprocessor/mesh.py,sha256=
|
|
22
|
+
voxcity/geoprocessor/mesh.py,sha256=MDh6lcTpk0pjB1letriOmYZVSSY365pbxjpoxAoaGIA,32196
|
|
23
23
|
voxcity/geoprocessor/network.py,sha256=YynqR0nq_NUra_cQ3Z_56KxfRia1b6-hIzGCj3QT-wE,25137
|
|
24
24
|
voxcity/geoprocessor/polygon.py,sha256=DfzXf6R-qoWXEZv1z1aHCVfr-DCuCFw6lieQT5cNHPA,61188
|
|
25
25
|
voxcity/geoprocessor/utils.py,sha256=s17XpgkLBelmNCk2wcUwTK1tEiFpguWR2BF_n7K17jg,31378
|
|
@@ -30,10 +30,10 @@ voxcity/simulator/view.py,sha256=k3FoS6gsibR-eDrTHJivJSQfvN3Tg8R8eSTeMqd9ans,939
|
|
|
30
30
|
voxcity/utils/__init__.py,sha256=Q-NYCqYnAAaF80KuNwpqIjbE7Ec3Gr4y_khMLIMhJrg,68
|
|
31
31
|
voxcity/utils/lc.py,sha256=722Gz3lPbgAp0mmTZ-g-QKBbAnbxrcgaYwb1sa7q8Sk,16189
|
|
32
32
|
voxcity/utils/material.py,sha256=H8K8Lq4wBL6dQtgj7esUW2U6wLCOTeOtelkTDJoRgMo,10007
|
|
33
|
-
voxcity/utils/visualization.py,sha256=
|
|
33
|
+
voxcity/utils/visualization.py,sha256=wmU0DCvYdq22RZH6zZXjt62M8pjZVSRU5Qppvv-Bj30,126848
|
|
34
34
|
voxcity/utils/weather.py,sha256=cb6ZooL42Hc4214OtFiJ78cCgWYM6VE-DU8S3e-urRg,48449
|
|
35
|
-
voxcity-0.6.
|
|
36
|
-
voxcity-0.6.
|
|
37
|
-
voxcity-0.6.
|
|
38
|
-
voxcity-0.6.
|
|
39
|
-
voxcity-0.6.
|
|
35
|
+
voxcity-0.6.32.dist-info/licenses/AUTHORS.rst,sha256=m82vkI5QokEGdcHof2OxK39lf81w1P58kG9ZNNAKS9U,175
|
|
36
|
+
voxcity-0.6.32.dist-info/licenses/LICENSE,sha256=s_jE1Df1nTPL4A_5GCGic5Zwex0CVaPKcAmSilxJPPE,1089
|
|
37
|
+
voxcity-0.6.32.dist-info/METADATA,sha256=KBYd4SrDJJOxEJcN2is0oB4RBSVPt8QGfd6gGy-sg4s,27331
|
|
38
|
+
voxcity-0.6.32.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
39
|
+
voxcity-0.6.32.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|