voxcity 0.7.0__py3-none-any.whl → 1.0.13__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.
Files changed (81) hide show
  1. voxcity/__init__.py +14 -14
  2. voxcity/downloader/ocean.py +559 -0
  3. voxcity/exporter/__init__.py +12 -12
  4. voxcity/exporter/cityles.py +633 -633
  5. voxcity/exporter/envimet.py +733 -728
  6. voxcity/exporter/magicavoxel.py +333 -333
  7. voxcity/exporter/netcdf.py +238 -238
  8. voxcity/exporter/obj.py +1480 -1480
  9. voxcity/generator/__init__.py +47 -44
  10. voxcity/generator/api.py +727 -675
  11. voxcity/generator/grids.py +394 -379
  12. voxcity/generator/io.py +94 -94
  13. voxcity/generator/pipeline.py +582 -282
  14. voxcity/generator/update.py +429 -0
  15. voxcity/generator/voxelizer.py +18 -6
  16. voxcity/geoprocessor/__init__.py +75 -75
  17. voxcity/geoprocessor/draw.py +1494 -1219
  18. voxcity/geoprocessor/merge_utils.py +91 -91
  19. voxcity/geoprocessor/mesh.py +806 -806
  20. voxcity/geoprocessor/network.py +708 -708
  21. voxcity/geoprocessor/raster/__init__.py +2 -0
  22. voxcity/geoprocessor/raster/buildings.py +435 -428
  23. voxcity/geoprocessor/raster/core.py +31 -0
  24. voxcity/geoprocessor/raster/export.py +93 -93
  25. voxcity/geoprocessor/raster/landcover.py +178 -51
  26. voxcity/geoprocessor/raster/raster.py +1 -1
  27. voxcity/geoprocessor/utils.py +824 -824
  28. voxcity/models.py +115 -113
  29. voxcity/simulator/solar/__init__.py +66 -43
  30. voxcity/simulator/solar/integration.py +336 -336
  31. voxcity/simulator/solar/sky.py +668 -0
  32. voxcity/simulator/solar/temporal.py +792 -434
  33. voxcity/simulator_gpu/__init__.py +115 -0
  34. voxcity/simulator_gpu/common/__init__.py +9 -0
  35. voxcity/simulator_gpu/common/geometry.py +11 -0
  36. voxcity/simulator_gpu/core.py +322 -0
  37. voxcity/simulator_gpu/domain.py +262 -0
  38. voxcity/simulator_gpu/environment.yml +11 -0
  39. voxcity/simulator_gpu/init_taichi.py +154 -0
  40. voxcity/simulator_gpu/integration.py +15 -0
  41. voxcity/simulator_gpu/kernels.py +56 -0
  42. voxcity/simulator_gpu/radiation.py +28 -0
  43. voxcity/simulator_gpu/raytracing.py +623 -0
  44. voxcity/simulator_gpu/sky.py +9 -0
  45. voxcity/simulator_gpu/solar/__init__.py +178 -0
  46. voxcity/simulator_gpu/solar/core.py +66 -0
  47. voxcity/simulator_gpu/solar/csf.py +1249 -0
  48. voxcity/simulator_gpu/solar/domain.py +561 -0
  49. voxcity/simulator_gpu/solar/epw.py +421 -0
  50. voxcity/simulator_gpu/solar/integration.py +2953 -0
  51. voxcity/simulator_gpu/solar/radiation.py +3019 -0
  52. voxcity/simulator_gpu/solar/raytracing.py +686 -0
  53. voxcity/simulator_gpu/solar/reflection.py +533 -0
  54. voxcity/simulator_gpu/solar/sky.py +907 -0
  55. voxcity/simulator_gpu/solar/solar.py +337 -0
  56. voxcity/simulator_gpu/solar/svf.py +446 -0
  57. voxcity/simulator_gpu/solar/volumetric.py +1151 -0
  58. voxcity/simulator_gpu/solar/voxcity.py +2953 -0
  59. voxcity/simulator_gpu/temporal.py +13 -0
  60. voxcity/simulator_gpu/utils.py +25 -0
  61. voxcity/simulator_gpu/view.py +32 -0
  62. voxcity/simulator_gpu/visibility/__init__.py +109 -0
  63. voxcity/simulator_gpu/visibility/geometry.py +278 -0
  64. voxcity/simulator_gpu/visibility/integration.py +808 -0
  65. voxcity/simulator_gpu/visibility/landmark.py +753 -0
  66. voxcity/simulator_gpu/visibility/view.py +944 -0
  67. voxcity/utils/__init__.py +11 -0
  68. voxcity/utils/classes.py +194 -0
  69. voxcity/utils/lc.py +80 -39
  70. voxcity/utils/shape.py +230 -0
  71. voxcity/visualizer/__init__.py +24 -24
  72. voxcity/visualizer/builder.py +43 -43
  73. voxcity/visualizer/grids.py +141 -141
  74. voxcity/visualizer/maps.py +187 -187
  75. voxcity/visualizer/renderer.py +1146 -928
  76. {voxcity-0.7.0.dist-info → voxcity-1.0.13.dist-info}/METADATA +56 -52
  77. voxcity-1.0.13.dist-info/RECORD +116 -0
  78. voxcity-0.7.0.dist-info/RECORD +0 -77
  79. {voxcity-0.7.0.dist-info → voxcity-1.0.13.dist-info}/WHEEL +0 -0
  80. {voxcity-0.7.0.dist-info → voxcity-1.0.13.dist-info}/licenses/AUTHORS.rst +0 -0
  81. {voxcity-0.7.0.dist-info → voxcity-1.0.13.dist-info}/licenses/LICENSE +0 -0
@@ -1,44 +1,47 @@
1
- """VoxCity generator subpackage.
2
-
3
- This package organizes the voxel city generation pipeline into focused modules
4
- while preserving the original public API under `voxcity.generator`.
5
-
6
- Orientation contract:
7
- - All 2D grids use north_up orientation (row 0 = north/top; columns increase eastward).
8
- - 3D indexing follows (row, col, z) = (north→south, west→east, ground→up).
9
- """
10
-
11
- from .api import get_voxcity, get_voxcity_CityGML, auto_select_data_sources
12
- from .grids import (
13
- get_land_cover_grid,
14
- get_building_height_grid,
15
- get_canopy_height_grid,
16
- get_dem_grid,
17
- )
18
- from .voxelizer import (
19
- Voxelizer,
20
- GROUND_CODE,
21
- TREE_CODE,
22
- BUILDING_CODE,
23
- )
24
- from .pipeline import VoxCityPipeline
25
- from .io import save_voxcity, load_voxcity
26
-
27
- __all__ = [
28
- "get_voxcity",
29
- "auto_select_data_sources",
30
- "get_voxcity_CityGML",
31
- "get_land_cover_grid",
32
- "get_building_height_grid",
33
- "get_canopy_height_grid",
34
- "get_dem_grid",
35
- "Voxelizer",
36
- "GROUND_CODE",
37
- "TREE_CODE",
38
- "BUILDING_CODE",
39
- "VoxCityPipeline",
40
- "save_voxcity",
41
- "load_voxcity",
42
- ]
43
-
44
-
1
+ """VoxCity generator subpackage.
2
+
3
+ This package organizes the voxel city generation pipeline into focused modules
4
+ while preserving the original public API under `voxcity.generator`.
5
+
6
+ Orientation contract:
7
+ - All 2D grids use north_up orientation (row 0 = north/top; columns increase eastward).
8
+ - 3D indexing follows (row, col, z) = (north→south, west→east, ground→up).
9
+ """
10
+
11
+ from .api import get_voxcity, get_voxcity_CityGML, auto_select_data_sources
12
+ from .grids import (
13
+ get_land_cover_grid,
14
+ get_building_height_grid,
15
+ get_canopy_height_grid,
16
+ get_dem_grid,
17
+ )
18
+ from .voxelizer import (
19
+ Voxelizer,
20
+ GROUND_CODE,
21
+ TREE_CODE,
22
+ BUILDING_CODE,
23
+ )
24
+ from .pipeline import VoxCityPipeline
25
+ from .io import save_voxcity, load_voxcity
26
+ from .update import update_voxcity, regenerate_voxels
27
+
28
+ __all__ = [
29
+ "get_voxcity",
30
+ "auto_select_data_sources",
31
+ "get_voxcity_CityGML",
32
+ "get_land_cover_grid",
33
+ "get_building_height_grid",
34
+ "get_canopy_height_grid",
35
+ "get_dem_grid",
36
+ "Voxelizer",
37
+ "GROUND_CODE",
38
+ "TREE_CODE",
39
+ "BUILDING_CODE",
40
+ "VoxCityPipeline",
41
+ "save_voxcity",
42
+ "load_voxcity",
43
+ "update_voxcity",
44
+ "regenerate_voxels",
45
+ ]
46
+
47
+