I'm getting completely incorrect values for altitude and azimuth of the sun when calculated using the pyephem library.
I've already established my observer location, which is determined by raw_input
for the lat and lon. I've checked to make sure this input is appropriate, and it is.
I have a bit of code in a for
loop that adds the altitude and azimuth of the sun to my list, DataPoint:
TempTime = str(DataPoint)[2:28] #strange date/time format. this fixes it
observer.date = TempTime
SunData = ep.Sun(observer)
DataPoint.append(SunData.alt)
DataPoint.append(SunData.az)
so, while this should work, this website calculates different values for my date/time and location.
If someone could help me figure out what I'm doing wrong, that'd be great.