Thanks Terry and Roel,
I got it working now, the problem was a sign situation. I fixed it this way:
from math import *
def Az(Lat, Dec, H_Ang):
lat_R = radians(Lat)
decl_R = radians(Dec)
hour_R = radians(H_Ang)
x_azm = sin(hour_R) * cos(decl_R)
Carlos schreef:
> I found a webpage that details the math behind this
> (http://www.usc.edu/dept/architecture/mbs/tools/vrsolar/Help/solar_concepts.html)
>
> , it was fairly trivial to translate this to python until I got to the
> azimuth equation. It looks like this:
>
> x_azm = sin(h
On Tue, 28 Nov 2006, Carlos wrote:
> I was never very good at trigonometry, but looks like my translation of
> the equation is ok and the problem is some kind of python behavior,
> because whenever the results exceed 100? (deg) Python returns the
> complementary angle, it is possible to avoid t