I am trying to locate the moon positons (Altitude and Azimuth) using python's ephem module and comparing it to a lookup table for apparent moon positions for my location. I am noticing a significant difference in the values that i obtain for the angles. Here is my test code.
>>> o = ephem.Observer()
>>> o.lat = 39.2545
>>> o.lon = -76.7095
>>> o.elevation = 80
>>> o.date = datetime.datetime.utcnow()
>>> print o.date
2012/8/13 21:00:55
>>> m = ephem.Moon(o)
>>> import math
>>> azimuth = math.degrees(m.az)
>>> azimuth
286.2894281178355
>>> alt = math.degrees(m.alt)
>>> alt
19.35235063580148
Now, compare these angles to the lookup table values:
Date/Time Zenith Azimuth
2012 Aug 13 21:00:00.0 88.45125 294.56966
2012 Aug 13 21:20:00.0 91.82583 297.59090
Note: Alt = 90 - Zenith. So our zenith value would be: 70.64764
My question is, why is there a difference? The lookup table gives the apparent angles. Does that have anything to do with it?