Sun Azimuth/Altitude Data in Ladybug

Hi all,

When I was using Ladybug for getting hourly sun azimuths/altitude for the entire year, some values are missing.
Ideally, when the sun is down, the value needs to be 0. For now, it only has 4408 values when the sun is on during the daytime.

I was wondering if any tutorial could help solve this problem?

You can remove the check in line 243 in the component to get all the hours including the night hours:

1 Like

Hi all,

I have a follow-up question regarding this in the updated LB SunPath component (v1.8.0). I tried to locate the place where @mostapha mentioned removing it, but I couldn’t find the equivalent line in the updated version. How can I modify the code in LB SunPath (v1.8.0) to include all hourly sun altitude values for the entire year, including nighttime hours (zeros)?

Thank you,
Fanourios