voxcity 0.3.6__py3-none-any.whl → 0.3.7__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/sim/solar.py +10 -1
- {voxcity-0.3.6.dist-info → voxcity-0.3.7.dist-info}/METADATA +2 -2
- {voxcity-0.3.6.dist-info → voxcity-0.3.7.dist-info}/RECORD +7 -7
- {voxcity-0.3.6.dist-info → voxcity-0.3.7.dist-info}/AUTHORS.rst +0 -0
- {voxcity-0.3.6.dist-info → voxcity-0.3.7.dist-info}/LICENSE +0 -0
- {voxcity-0.3.6.dist-info → voxcity-0.3.7.dist-info}/WHEEL +0 -0
- {voxcity-0.3.6.dist-info → voxcity-0.3.7.dist-info}/top_level.txt +0 -0
voxcity/sim/solar.py
CHANGED
|
@@ -651,6 +651,8 @@ def get_global_solar_irradiance_using_epw(
|
|
|
651
651
|
- calc_time (str): Time for instantaneous calculation ('MM-DD HH:MM:SS')
|
|
652
652
|
- start_time (str): Start time for cumulative calculation
|
|
653
653
|
- end_time (str): End time for cumulative calculation
|
|
654
|
+
- start_hour (int): Starting hour for daily time window (0-23)
|
|
655
|
+
- end_hour (int): Ending hour for daily time window (0-23)
|
|
654
656
|
- view_point_height (float): Observer height in meters
|
|
655
657
|
- tree_k (float): Tree extinction coefficient
|
|
656
658
|
- tree_lad (float): Leaf area density in m^-1
|
|
@@ -743,10 +745,17 @@ def get_global_solar_irradiance_using_epw(
|
|
|
743
745
|
**kwargs
|
|
744
746
|
)
|
|
745
747
|
if calc_type == 'cumulative':
|
|
748
|
+
# Get time window parameters
|
|
749
|
+
start_hour = kwargs.get("start_hour", 0) # Default to midnight
|
|
750
|
+
end_hour = kwargs.get("end_hour", 23) # Default to 11 PM
|
|
751
|
+
|
|
752
|
+
# Filter dataframe for specified hours
|
|
753
|
+
df_filtered = df[df.index.hour.between(start_hour, end_hour)]
|
|
754
|
+
|
|
746
755
|
solar_map = get_cumulative_global_solar_irradiance(
|
|
747
756
|
voxel_data,
|
|
748
757
|
meshsize,
|
|
749
|
-
|
|
758
|
+
df_filtered, lat, lon, tz,
|
|
750
759
|
**kwargs
|
|
751
760
|
)
|
|
752
761
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: voxcity
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.7
|
|
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>
|
|
@@ -447,7 +447,7 @@ G, edge_gdf = get_network_values(
|
|
|
447
447
|
<img src="https://raw.githubusercontent.com/kunifujiwara/VoxCity/main/images/network.png" alt="Example of Graph Output" width="500">
|
|
448
448
|
</p>
|
|
449
449
|
<p align="center">
|
|
450
|
-
<em>
|
|
450
|
+
<em>Cumulative Global Solar Irradiance (kW/m²·hour) on Road Network</em>
|
|
451
451
|
</p>
|
|
452
452
|
|
|
453
453
|
## References of Data Sources
|
|
@@ -20,7 +20,7 @@ voxcity/geo/grid.py,sha256=_MzO-Cu2GhlP9nuCql6f1pfbU2_OAL27aQ_zCj1u_zk,36288
|
|
|
20
20
|
voxcity/geo/network.py,sha256=iBgvOaM4YPQKL5gnAU9rxe3ZlJLTjLIt7DoAIWzZRfs,6892
|
|
21
21
|
voxcity/geo/utils.py,sha256=1BRHp-DDeOA8HG8jplY7Eo75G3oXkVGL6DGONL4BA8A,19815
|
|
22
22
|
voxcity/sim/__init_.py,sha256=APdkcdaovj0v_RPOaA4SBvFUKT2RM7Hxuuz3Sux4gCo,65
|
|
23
|
-
voxcity/sim/solar.py,sha256=
|
|
23
|
+
voxcity/sim/solar.py,sha256=9vyzLCBiASh85b1TRRG4gFqSmMcbI0i-2sBdPrswMyM,31783
|
|
24
24
|
voxcity/sim/utils.py,sha256=sEYBB2-hLJxTiXQps1_-Fi7t1HN3-1OPOvBCWtgIisA,130
|
|
25
25
|
voxcity/sim/view.py,sha256=oq6G-f0Tn-KT0vjYNJfucmOIrv1GNjljhA-zvU4nNoA,36668
|
|
26
26
|
voxcity/utils/__init_.py,sha256=nLYrj2huBbDBNMqfchCwexGP8Tlt9O_XluVDG7MoFkw,98
|
|
@@ -28,9 +28,9 @@ voxcity/utils/lc.py,sha256=RwPd-VY3POV3gTrBhM7TubgGb9MCd3nVah_G8iUEF7k,11562
|
|
|
28
28
|
voxcity/utils/material.py,sha256=Vt3IID5Ft54HNJcEC4zi31BCPqi_687X3CSp7rXaRVY,5907
|
|
29
29
|
voxcity/utils/visualization.py,sha256=FNBMN0V5IPuAdqvLHnqSGYqNS7jWesg0ZADEtsUtl0A,31925
|
|
30
30
|
voxcity/utils/weather.py,sha256=P6s1y_EstBL1OGP_MR_6u3vr-t6Uawg8uDckJnoI7FI,21482
|
|
31
|
-
voxcity-0.3.
|
|
32
|
-
voxcity-0.3.
|
|
33
|
-
voxcity-0.3.
|
|
34
|
-
voxcity-0.3.
|
|
35
|
-
voxcity-0.3.
|
|
36
|
-
voxcity-0.3.
|
|
31
|
+
voxcity-0.3.7.dist-info/AUTHORS.rst,sha256=m82vkI5QokEGdcHof2OxK39lf81w1P58kG9ZNNAKS9U,175
|
|
32
|
+
voxcity-0.3.7.dist-info/LICENSE,sha256=-hGliOFiwUrUSoZiB5WF90xXGqinKyqiDI2t6hrnam8,1087
|
|
33
|
+
voxcity-0.3.7.dist-info/METADATA,sha256=B78MYc4ThBH3XI2d-3R7UrkFjVpThF0j66z_JcOwmmE,25087
|
|
34
|
+
voxcity-0.3.7.dist-info/WHEEL,sha256=A3WOREP4zgxI0fKrHUG8DC8013e3dK3n7a6HDbcEIwE,91
|
|
35
|
+
voxcity-0.3.7.dist-info/top_level.txt,sha256=00b2U-LKfDllt6RL1R33MXie5MvxzUFye0NGD96t_8I,8
|
|
36
|
+
voxcity-0.3.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|