voxcity 0.3.25__py3-none-any.whl → 0.4.1__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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: voxcity
3
- Version: 0.3.25
3
+ Version: 0.4.1
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
  Author-email: Kunihiko Fujiwara <kunihiko@nus.edu.sg>
6
6
  Maintainer-email: Kunihiko Fujiwara <kunihiko@nus.edu.sg>
@@ -45,7 +45,7 @@ Requires-Dist: pycountry
45
45
  Requires-Dist: osm2geojson
46
46
  Requires-Dist: seaborn
47
47
  Requires-Dist: overturemaps
48
- Requires-Dist: protobuf==3.20.3
48
+ Requires-Dist: protobuf<=3.20.3
49
49
  Requires-Dist: timezonefinder
50
50
  Requires-Dist: astral
51
51
  Requires-Dist: osmnx
@@ -69,7 +69,7 @@ Requires-Dist: ruff; extra == "dev"
69
69
 
70
70
  # VoxCity
71
71
 
72
- **VoxCity** is a Python package that provides a one-stop solution for grid-based 3D city model generation and urban simulation for cities worldwide. It integrates various geospatial datasets—such as building footprints, land cover, canopy height, and digital elevation models (DEMs)—to generate 2D and 3D representations of urban areas. It can export data in formats compatible with popular simulation tools like ENVI-MET, as well as visualization tools like MagicaVoxel, and supports simulations such as sky view index and green view index calculations.
72
+ **voxcity** is a Python package that provides a seamless solution for grid-based 3D city model generation and urban simulation for cities worldwide. VoxCity's generator module automatically downloads building heights, tree canopy heights, land cover, and terrain elevation within a specified target area, and voxelizes buildings, trees, land cover, and terrain to generate an integrated voxel city model. The simulator module enables users to conduct environmental simulations, including solar radiation and view index analyses. Users can export the generated models using several file formats compatible with external software, such as ENVI-met (INX), Blender, and Rhino (OBJ). Try it out using the [Google Colab Demo](https://colab.research.google.com/drive/1Lofd3RawKMr6QuUsamGaF48u2MN0hfrP?usp=sharing) or your local environment.
73
73
 
74
74
  <!-- <p align="center">
75
75
  <picture>
@@ -180,7 +180,7 @@ rectangle_vertices = [
180
180
  Use the GUI map interface to draw a rectangular domain of interest.
181
181
 
182
182
  ```python
183
- from voxcity.geo.draw import draw_rectangle_map_cityname
183
+ from voxcity.geoprocessor.draw import draw_rectangle_map_cityname
184
184
 
185
185
  cityname = "tokyo"
186
186
  m, rectangle_vertices = draw_rectangle_map_cityname(cityname, zoom=15)
@@ -191,7 +191,7 @@ m
191
191
  Choose the width and height in meters and select the center point on the map.
192
192
 
193
193
  ```python
194
- from voxcity.geo.draw import center_location_map_cityname
194
+ from voxcity.geoprocessor.draw import center_location_map_cityname
195
195
 
196
196
  width = 500
197
197
  height = 500
@@ -224,7 +224,7 @@ kwargs = {
224
224
  Generate voxel data grids and corresponding building geoJSON:
225
225
 
226
226
  ```python
227
- from voxcity import get_voxcity
227
+ from voxcity.generator import get_voxcity
228
228
 
229
229
  voxcity_grid, building_height_grid, building_min_height_grid, \
230
230
  building_id_grid, canopy_height_grid, land_cover_grid, dem_grid, \
@@ -245,7 +245,7 @@ building_gdf = get_voxcity(
245
245
  [ENVI-MET](https://www.envi-met.com/) is an advanced microclimate simulation software specialized in modeling urban environments. It simulates the interactions between buildings, vegetation, and various climate parameters like temperature, wind flow, humidity, and radiation. The software is used widely in urban planning, architecture, and environmental studies (Commercial, offers educational licenses).
246
246
 
247
247
  ```python
248
- from voxcity.file.envimet import export_inx, generate_edb_file
248
+ from voxcity.exporter.envimet import export_inx, generate_edb_file
249
249
 
250
250
  envimet_kwargs = {
251
251
  "output_directory": "output", # Directory where output files will be saved
@@ -271,7 +271,7 @@ generate_edb_file(**envimet_kwargs)
271
271
  #### OBJ Files:
272
272
 
273
273
  ```python
274
- from voxcity.file.obj import export_obj
274
+ from voxcity.exporter.obj import export_obj
275
275
 
276
276
  output_directory = "output" # Directory where output files will be saved
277
277
  output_file_name = "voxcity" # Base name for the output OBJ file
@@ -295,7 +295,7 @@ The generated OBJ files can be opened and rendered in the following 3D visualiza
295
295
  [MagicaVoxel](https://ephtracy.github.io/) is a lightweight and user-friendly voxel art editor. It allows users to create, edit, and render voxel-based 3D models with an intuitive interface, making it perfect for modifying and visualizing voxelized city models. The software is free and available for Windows and Mac.
296
296
 
297
297
  ```python
298
- from voxcity.file.magicavoxel import export_magicavoxel_vox
298
+ from voxcity.exporter.magicavoxel import export_magicavoxel_vox
299
299
 
300
300
  output_path = "output"
301
301
  base_filename = "voxcity"
@@ -313,7 +313,7 @@ export_magicavoxel_vox(voxcity_grid, output_path, base_filename=base_filename)
313
313
  #### Compute Solar Irradiance:
314
314
 
315
315
  ```python
316
- from voxcity.sim.solar import get_global_solar_irradiance_using_epw
316
+ from voxcity.simulator.solar import get_global_solar_irradiance_using_epw
317
317
 
318
318
  solar_kwargs = {
319
319
  "download_nearest_epw": True, # Whether to automatically download nearest EPW weather file based on location from Climate.OneBuilding.Org
@@ -369,7 +369,7 @@ cum_solar_grid = get_global_solar_irradiance_using_epw(
369
369
  #### Compute Green View Index (GVI) and Sky View Index (SVI):
370
370
 
371
371
  ```python
372
- from voxcity.sim.view import get_view_index
372
+ from voxcity.simulator.view import get_view_index
373
373
 
374
374
  view_kwargs = {
375
375
  "view_point_height": 1.5, # Height of observer viewpoint in meters
@@ -401,7 +401,7 @@ svi_grid = get_view_index(voxcity_grid, meshsize, mode='sky', **view_kwargs)
401
401
  #### Landmark Visibility Map:
402
402
 
403
403
  ```python
404
- from voxcity.sim.view import get_landmark_visibility_map
404
+ from voxcity.simulator.view import get_landmark_visibility_map
405
405
 
406
406
  # Dictionary of parameters for landmark visibility analysis
407
407
  landmark_kwargs = {
@@ -425,7 +425,7 @@ landmark_vis_map = get_landmark_visibility_map(voxcity_grid, building_id_grid, b
425
425
  #### Network Analysis:
426
426
 
427
427
  ```python
428
- from voxcity.geo.network import get_network_values
428
+ from voxcity.geoprocessor.network import get_network_values
429
429
 
430
430
  network_kwargs = {
431
431
  "network_type": "walk", # Type of network to download from OSM (walk, drive, all, etc.)
@@ -1,5 +1,5 @@
1
1
  voxcity/__init__.py,sha256=el9v3gfybHOF_GUYPeSOqN0-vCrTW0eU1mcvi0sEfeU,252
2
- voxcity/generator.py,sha256=dEhEGWF7Wgz8BwtX-eheAmn85VzhgJC9SckVQohVzzo,34406
2
+ voxcity/generator.py,sha256=rsS5Z77Esgomho9Bd3HRQeYlncvyEG1CEHUXAB_SHxw,35048
3
3
  voxcity/downloader/__init__.py,sha256=OgGcGxOXF4tjcEL6DhOnt13DYPTvOigUelp5xIpTqM0,171
4
4
  voxcity/downloader/eubucco.py,sha256=XCkkdEPNuWdrnuxzL80Ext37WsgiCiZGueb-aQV5rvI,14476
5
5
  voxcity/downloader/gee.py,sha256=hEN5OvQAltORYnrlPbmYcDequ6lKLmwyTbNaCZ81Vj8,16089
@@ -12,26 +12,26 @@ voxcity/downloader/utils.py,sha256=z6MdPxM96FWQVqvZW2Eg5pMewVHVysUP7F6ueeCwMfI,1
12
12
  voxcity/exporter/__init_.py,sha256=cVyNyE6axEpSd3CT5hGuMOAlOyU1p8lVP4jkF1-0Ad8,94
13
13
  voxcity/exporter/envimet.py,sha256=m-y2IYw-yp45AT2wN9UIlxvMjvDvupTKzyfRJl057fE,24300
14
14
  voxcity/exporter/magicavoxel.py,sha256=Fsv7yGRXeKmp82xcG3rOb0t_HtoqltNq2tHl08xVlqY,7500
15
- voxcity/exporter/obj.py,sha256=oW-kPoZj53nfmO9tXP3Wvizq6Kkjh-QQR8UBexRuMiI,21609
15
+ voxcity/exporter/obj.py,sha256=0RBFPMKGRH6uNmCLIwAoYFko1bOZKtTSwg7QnoPMud0,21593
16
16
  voxcity/geoprocessor/__init_.py,sha256=JzPVhhttxBWvaZ0IGX2w7OWL5bCo_TIvpHefWeNXruA,133
17
17
  voxcity/geoprocessor/draw.py,sha256=8Em2NvazFpYfFJUqG9LofNXaxdghKLL_rNuztmPwn8Q,13911
18
- voxcity/geoprocessor/grid.py,sha256=DYphECd0v4o7_ZH5rd-_AWSvNaKoAsQ2fuko1sh-2AM,44113
19
- voxcity/geoprocessor/mesh.py,sha256=u4j5wombULMc26yhH8seltMZvmeKab1oequnZYrbiuE,9454
18
+ voxcity/geoprocessor/grid.py,sha256=t-KAdYOk1iUeBuOMcoAb5e4hzJjMIfVItTdFP6FJs1A,44340
19
+ voxcity/geoprocessor/mesh.py,sha256=z6e-BigN_K1CGpS9mopkf121pbCnBFJMu32XYfqpLI4,10506
20
20
  voxcity/geoprocessor/network.py,sha256=opb_kpUCAxDd1qtrWPStqR5reYZtVe96XxazNSen7Lk,18851
21
- voxcity/geoprocessor/polygon.py,sha256=wMVn2Y7rfbzOlTBktq4pBNZ7-Dmh3jOqRBHk450Ywss,33669
21
+ voxcity/geoprocessor/polygon.py,sha256=wXU3K-lghAlAOe_C-m1YD4_75DvCWzdszuWieenP5mA,37208
22
22
  voxcity/geoprocessor/utils.py,sha256=1BRHp-DDeOA8HG8jplY7Eo75G3oXkVGL6DGONL4BA8A,19815
23
23
  voxcity/simulator/__init_.py,sha256=APdkcdaovj0v_RPOaA4SBvFUKT2RM7Hxuuz3Sux4gCo,65
24
- voxcity/simulator/solar.py,sha256=FOcHoUm4miJNyeCcGs2oL93Vu38Affyywt29dJcmIT4,31974
24
+ voxcity/simulator/solar.py,sha256=7IGmCCYsAnBguID2IT2xjzfbK7msxakaJ0_0Eu0cvX0,58607
25
25
  voxcity/simulator/utils.py,sha256=sEYBB2-hLJxTiXQps1_-Fi7t1HN3-1OPOvBCWtgIisA,130
26
- voxcity/simulator/view.py,sha256=zNbfTLQ2Jo0V5-rFA3-xamRjOuw3H3MBrLKpQp8x3hY,36737
26
+ voxcity/simulator/view.py,sha256=iNJxeY3HH3YNAF0nh6HxthyW001HNH4wvLZFp7_YkS8,63669
27
27
  voxcity/utils/__init_.py,sha256=nLYrj2huBbDBNMqfchCwexGP8Tlt9O_XluVDG7MoFkw,98
28
28
  voxcity/utils/lc.py,sha256=RwPd-VY3POV3gTrBhM7TubgGb9MCd3nVah_G8iUEF7k,11562
29
29
  voxcity/utils/material.py,sha256=Vt3IID5Ft54HNJcEC4zi31BCPqi_687X3CSp7rXaRVY,5907
30
- voxcity/utils/visualization.py,sha256=ufS6aMIaDUmFNTiqQS5If7SgHxMm6unKIIOkFdnSkOQ,54253
30
+ voxcity/utils/visualization.py,sha256=O5Gpxqz2e0OrinCXIE9JeIbZ3eYmId4gWupz3b1K9Vo,84629
31
31
  voxcity/utils/weather.py,sha256=P6s1y_EstBL1OGP_MR_6u3vr-t6Uawg8uDckJnoI7FI,21482
32
- voxcity-0.3.25.dist-info/AUTHORS.rst,sha256=m82vkI5QokEGdcHof2OxK39lf81w1P58kG9ZNNAKS9U,175
33
- voxcity-0.3.25.dist-info/LICENSE,sha256=-hGliOFiwUrUSoZiB5WF90xXGqinKyqiDI2t6hrnam8,1087
34
- voxcity-0.3.25.dist-info/METADATA,sha256=-ACnXtIlIX4rZdBuReFW4yBujdzDcSrmTtyTEs1HdO0,25186
35
- voxcity-0.3.25.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
36
- voxcity-0.3.25.dist-info/top_level.txt,sha256=00b2U-LKfDllt6RL1R33MXie5MvxzUFye0NGD96t_8I,8
37
- voxcity-0.3.25.dist-info/RECORD,,
32
+ voxcity-0.4.1.dist-info/AUTHORS.rst,sha256=m82vkI5QokEGdcHof2OxK39lf81w1P58kG9ZNNAKS9U,175
33
+ voxcity-0.4.1.dist-info/LICENSE,sha256=-hGliOFiwUrUSoZiB5WF90xXGqinKyqiDI2t6hrnam8,1087
34
+ voxcity-0.4.1.dist-info/METADATA,sha256=zD-3iEI1_YW11ylwT4ztJSZsuF2DpSnec-8b3hvdlyM,25527
35
+ voxcity-0.4.1.dist-info/WHEEL,sha256=EaM1zKIUYa7rQnxGiOCGhzJABRwy4WO57rWMR3_tj4I,91
36
+ voxcity-0.4.1.dist-info/top_level.txt,sha256=00b2U-LKfDllt6RL1R33MXie5MvxzUFye0NGD96t_8I,8
37
+ voxcity-0.4.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.0)
2
+ Generator: setuptools (75.9.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5