You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry but i find that the sun azimuth must plus 180 degree so:
function getAzimuth(H, phi, dec) {
return atan(sin(H), cos(H) * sin(phi) - tan(dec) * cos(phi));
}
must be:
function getAzimuth(H, phi, dec) {
return PI + atan(sin(H), cos(H) * sin(phi) - tan(dec) * cos(phi));
}