Sunlight script problems

Hi, I have a problem with the output of Shadowstudy.
In the resulting output, the color scale is not working and there are black pixels in places where it does not make sense. Do you know what could be the problem please?
I am attaching the used script with the file and png images.
:heart_hands: thanks

Model-230301.3dm (2.2 MB) (411.5 KB)

Hi Tomáš -
Please see for questions related to the Ladybug Tools.

thanks :slight_smile: