Altitude is the angle to the horizontal plane (horizon). But we use the Zenith, which is the angle of the sun relative to the vertical plane. For examples our vertically mounted windows face 90degrees. Which is 90degrees zenith (technically 0 degrees altitude). So all variables such as alitutde_rad, and alititude_tile, sun_alititude, should have altitude replaced with zenith
Altitude is the angle to the horizontal plane (horizon). But we use the Zenith, which is the angle of the sun relative to the vertical plane. For examples our vertically mounted windows face 90degrees. Which is 90degrees zenith (technically 0 degrees altitude). So all variables such as
alitutde_rad, andalititude_tile,sun_alititude, should havealtitudereplaced withzenith