Matching issue calculation Altitude/Azimuth compared to Sunpath Ladybug

Hi, When I calculate the sun position by an altitude and azimuth angle rather than by HOY’s (hour day and month) as with LadyBug’s Sunpath, the resulting vectors don’t match

I’m pretty sure my script is correct (with Azimuth north-based azimuths going clockwise from North=0° to East=90°). Any suggestions what is happening. My location intended location is northern hemisphere (Amsterdam) and I want the positive Y-axis to be North. The only obvious difference is that Ladybug states in help file: "Ladybug:Sunpath North_ is West 90° and East 270°). What do I need to change in Ladybuy to meet my requirements?

SunPath_match_Azimuth.gh (26.9 KB)

Hi Chris -
Please see https://discourse.ladybug.tools/ for questions related to the Ladybug Tools.
-wim

Solution here: Matching issue calculation Altitude/Azimuth compared to Sunpath Ladybug - #2 by charlie.brooker - ladybug-tools - Ladybug Tools | Forum