voxcity 0.6.16__py3-none-any.whl → 0.6.18__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/downloader/osm.py +23 -7
- voxcity/downloader/overture.py +26 -1
- voxcity/exporter/__init__.py +2 -1
- voxcity/exporter/netcdf.py +211 -0
- voxcity/exporter/obj.py +538 -1
- voxcity/generator.py +102 -7
- voxcity/geoprocessor/grid.py +1738 -1732
- voxcity/utils/visualization.py +31 -0
- {voxcity-0.6.16.dist-info → voxcity-0.6.18.dist-info}/METADATA +4 -2
- {voxcity-0.6.16.dist-info → voxcity-0.6.18.dist-info}/RECORD +13 -12
- {voxcity-0.6.16.dist-info → voxcity-0.6.18.dist-info}/AUTHORS.rst +0 -0
- {voxcity-0.6.16.dist-info → voxcity-0.6.18.dist-info}/LICENSE +0 -0
- {voxcity-0.6.16.dist-info → voxcity-0.6.18.dist-info}/WHEEL +0 -0
voxcity/utils/visualization.py
CHANGED
|
@@ -111,6 +111,7 @@ def get_voxel_color_map(color_scheme='default'):
|
|
|
111
111
|
- 'pastel': Softer, muted colors for aesthetic appeal
|
|
112
112
|
- 'dark_mode': Darker colors for dark backgrounds
|
|
113
113
|
- 'grayscale': Black and white gradient with color accents
|
|
114
|
+
- 'white_mode': Light minimal palette for white backgrounds
|
|
114
115
|
|
|
115
116
|
Thematic Schemes:
|
|
116
117
|
- 'autumn': Warm reds, oranges, and browns
|
|
@@ -329,6 +330,36 @@ def get_voxel_color_map(color_scheme='default'):
|
|
|
329
330
|
14: [230, 230, 230], # 'No Data'
|
|
330
331
|
}
|
|
331
332
|
|
|
333
|
+
elif color_scheme == 'white_mode':
|
|
334
|
+
return {
|
|
335
|
+
-99: [0, 0, 0], # void (transparent in rendering)
|
|
336
|
+
-30: [220, 80, 80], # subtle highlight for landmarks
|
|
337
|
+
-17: [250, 250, 250], # plaster (near white)
|
|
338
|
+
-16: [210, 225, 235], # glass (light blue-gray)
|
|
339
|
+
-15: [230, 225, 215], # stone (warm light gray)
|
|
340
|
+
-14: [225, 230, 235], # metal (cool light gray)
|
|
341
|
+
-13: [236, 236, 236], # concrete (very light gray)
|
|
342
|
+
-12: [245, 232, 210], # wood (light beige)
|
|
343
|
+
-11: [235, 210, 205], # brick (light rose)
|
|
344
|
+
-3: [225, 230, 240], # Building (soft blue-gray)
|
|
345
|
+
-2: [190, 210, 190], # Tree (soft green)
|
|
346
|
+
-1: [230, 215, 215], # Underground (soft pinkish)
|
|
347
|
+
1: [248, 245, 235], # Bareland
|
|
348
|
+
2: [225, 235, 215], # Rangeland
|
|
349
|
+
3: [220, 235, 220], # Shrub
|
|
350
|
+
4: [240, 235, 215], # Agriculture land
|
|
351
|
+
5: [210, 230, 210], # Tree (ground)
|
|
352
|
+
6: [245, 250, 235], # Moss and lichen
|
|
353
|
+
7: [220, 235, 230], # Wet land
|
|
354
|
+
8: [205, 215, 210], # Mangrove
|
|
355
|
+
9: [200, 220, 245], # Water (pale blue)
|
|
356
|
+
10: [252, 252, 252], # Snow and ice (almost white)
|
|
357
|
+
11: [230, 230, 230], # Developed space
|
|
358
|
+
12: [210, 210, 215], # Road (light neutral)
|
|
359
|
+
13: [230, 235, 240], # Building (ground surface)
|
|
360
|
+
14: [248, 245, 235], # No Data
|
|
361
|
+
}
|
|
362
|
+
|
|
332
363
|
elif color_scheme == 'autumn':
|
|
333
364
|
return {
|
|
334
365
|
-99: [0, 0, 0], # void
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: voxcity
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.18
|
|
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
|
Author: Kunihiko Fujiwara
|
|
@@ -27,6 +27,7 @@ Requires-Dist: ipyleaflet
|
|
|
27
27
|
Requires-Dist: joblib
|
|
28
28
|
Requires-Dist: lxml
|
|
29
29
|
Requires-Dist: matplotlib
|
|
30
|
+
Requires-Dist: netCDF4
|
|
30
31
|
Requires-Dist: numba
|
|
31
32
|
Requires-Dist: numpy
|
|
32
33
|
Requires-Dist: osmnx
|
|
@@ -51,6 +52,7 @@ Requires-Dist: timezonefinder
|
|
|
51
52
|
Requires-Dist: tqdm
|
|
52
53
|
Requires-Dist: trimesh
|
|
53
54
|
Requires-Dist: typer
|
|
55
|
+
Requires-Dist: xarray
|
|
54
56
|
Project-URL: bugs, https://github.com/kunifujiwara/voxcity/issues
|
|
55
57
|
Project-URL: changelog, https://github.com/kunifujiwara/voxcity/blob/master/changelog.md
|
|
56
58
|
Project-URL: homepage, https://github.com/kunifujiwara/voxcity
|
|
@@ -232,7 +234,7 @@ Generate voxel data grids and corresponding building geoJSON:
|
|
|
232
234
|
from voxcity.generator import get_voxcity
|
|
233
235
|
|
|
234
236
|
voxcity_grid, building_height_grid, building_min_height_grid, \
|
|
235
|
-
building_id_grid, canopy_height_grid, land_cover_grid, dem_grid, \
|
|
237
|
+
building_id_grid, canopy_height_grid, canopy_bottom_height_grid, land_cover_grid, dem_grid, \
|
|
236
238
|
building_gdf = get_voxcity(
|
|
237
239
|
rectangle_vertices,
|
|
238
240
|
building_source,
|
|
@@ -5,18 +5,19 @@ voxcity/downloader/eubucco.py,sha256=ln1YNaaOgJfxNfCtVbYaMm775-bUvpAA_LDv60_i22w
|
|
|
5
5
|
voxcity/downloader/gee.py,sha256=nvJvYqcSZyyontRtG2cFeb__ZJfeY4rRN1NBPORxLwQ,23557
|
|
6
6
|
voxcity/downloader/mbfp.py,sha256=UXDVjsO0fnb0fSal9yqrSFEIBThnRmnutnp08kZTmCA,6595
|
|
7
7
|
voxcity/downloader/oemj.py,sha256=iDacTpiqn7RAXuqyEtHP29m0Cycwta5sMy9-GdvX3Fg,12293
|
|
8
|
-
voxcity/downloader/osm.py,sha256=
|
|
9
|
-
voxcity/downloader/overture.py,sha256=
|
|
8
|
+
voxcity/downloader/osm.py,sha256=7Wo6lSodci7gALMKLQ_0ricmn0ZrfUK90vKYQ-ayU2A,46285
|
|
9
|
+
voxcity/downloader/overture.py,sha256=hVxu-3Fmuu2E1tEzcDcNyU1cR-aE-6h6jkcxkuqN1-s,13343
|
|
10
10
|
voxcity/downloader/utils.py,sha256=tz6wt4B9BhEOyvoF5OYXlr8rUd5cBEDedWL3j__oT70,3099
|
|
11
|
-
voxcity/exporter/__init__.py,sha256=
|
|
11
|
+
voxcity/exporter/__init__.py,sha256=ikmRs3jGKvYTjpleiROfiCPYlwtqxwl1T6pk8pievQw,117
|
|
12
12
|
voxcity/exporter/cityles.py,sha256=Kfl2PAn4WquqCdjOlyPrHysxPLaudh8QfsoC6WAXlvs,18325
|
|
13
13
|
voxcity/exporter/envimet.py,sha256=Sh7s1JdQ6SgT_L2Xd_c4gtEGWK2hTS87bccaoIqik-s,31105
|
|
14
14
|
voxcity/exporter/magicavoxel.py,sha256=SfGEgTZRlossKx3Xrv9d3iKSX-HmfQJEL9lZHgWMDX4,12782
|
|
15
|
-
voxcity/exporter/
|
|
16
|
-
voxcity/
|
|
15
|
+
voxcity/exporter/netcdf.py,sha256=48rJ3wDsFhi9ANbElhMjXLxWMJoJzBt1gFbN0ekPp-A,7404
|
|
16
|
+
voxcity/exporter/obj.py,sha256=2MA2GpexMC1_GnMv0u5GVNGO1N9DH8TAtYVcFoWvkbg,50386
|
|
17
|
+
voxcity/generator.py,sha256=4WSjO09f8z3zt0tpKY0fyAfOMym1JT4VH3Tt1lOg2Bk,66900
|
|
17
18
|
voxcity/geoprocessor/__init__.py,sha256=WYxcAQrjGucIvGHF0JTC6rONZzL3kCms1S2vpzS6KaU,127
|
|
18
19
|
voxcity/geoprocessor/draw.py,sha256=AZMWq23wxxDJygNloCbVzWAAr1JO7nC94umf9LSxJ5o,49248
|
|
19
|
-
voxcity/geoprocessor/grid.py,sha256=
|
|
20
|
+
voxcity/geoprocessor/grid.py,sha256=NmlQwl1nJpS7MduVtJeJCG-xBfVIwKTOip7pMm3RhsY,76722
|
|
20
21
|
voxcity/geoprocessor/mesh.py,sha256=A7uaCMWfm82KEoYPfQYpxv6xMtQKaU2PBVDfKTpngqg,32027
|
|
21
22
|
voxcity/geoprocessor/network.py,sha256=YynqR0nq_NUra_cQ3Z_56KxfRia1b6-hIzGCj3QT-wE,25137
|
|
22
23
|
voxcity/geoprocessor/polygon.py,sha256=DfzXf6R-qoWXEZv1z1aHCVfr-DCuCFw6lieQT5cNHPA,61188
|
|
@@ -28,10 +29,10 @@ voxcity/simulator/view.py,sha256=k3FoS6gsibR-eDrTHJivJSQfvN3Tg8R8eSTeMqd9ans,939
|
|
|
28
29
|
voxcity/utils/__init__.py,sha256=Q-NYCqYnAAaF80KuNwpqIjbE7Ec3Gr4y_khMLIMhJrg,68
|
|
29
30
|
voxcity/utils/lc.py,sha256=722Gz3lPbgAp0mmTZ-g-QKBbAnbxrcgaYwb1sa7q8Sk,16189
|
|
30
31
|
voxcity/utils/material.py,sha256=H8K8Lq4wBL6dQtgj7esUW2U6wLCOTeOtelkTDJoRgMo,10007
|
|
31
|
-
voxcity/utils/visualization.py,sha256=
|
|
32
|
+
voxcity/utils/visualization.py,sha256=_c5WnhA0fawkseUviKEIpUUsF-M-OOLOT9FrpgQIh1A,118556
|
|
32
33
|
voxcity/utils/weather.py,sha256=2Jtg-rIVJcsTtiKE-KuDnhIqS1-MSS16_zFRzj6zmu4,36435
|
|
33
|
-
voxcity-0.6.
|
|
34
|
-
voxcity-0.6.
|
|
35
|
-
voxcity-0.6.
|
|
36
|
-
voxcity-0.6.
|
|
37
|
-
voxcity-0.6.
|
|
34
|
+
voxcity-0.6.18.dist-info/AUTHORS.rst,sha256=m82vkI5QokEGdcHof2OxK39lf81w1P58kG9ZNNAKS9U,175
|
|
35
|
+
voxcity-0.6.18.dist-info/LICENSE,sha256=s_jE1Df1nTPL4A_5GCGic5Zwex0CVaPKcAmSilxJPPE,1089
|
|
36
|
+
voxcity-0.6.18.dist-info/METADATA,sha256=2KzFc-aRuap89tiZhqAotBF2ACcK86VCJuwg2tUvKbk,26164
|
|
37
|
+
voxcity-0.6.18.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
38
|
+
voxcity-0.6.18.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|