Percentage of time that the roof surface is shaded by a external object

Hi,

how could I calculate using ladubug tools the percentage of time along the year that the roof surface is shaded by a external object?. i need it to estimate if it is worthy to install PV panels in some area of my roof.

Regards

Hi albertomorales,

You can check the example file [direct_sun_study.gh]. - this script is perfect for the problem you described. Also attached here:
direct_sun_study.gh (34.4 KB)

You can download more example files here: Ladybug Tools | Food4Rhino

Best,
Jiewei

Thanks a lot. I really appreciate your help

this is one part of about what I want but the most difficult one is to calculate the percentage of time that the surface that is shaded. some part of the shaded surface will be shaded longer than other