There are two subtleties. First, you used “altitude” and “altitude” to mean the opposite of what the two terms in the PyEphem library mean — so you call a spot in the sky with your position “altitude / azimuth” instead of your “altitude / azimuth”. Secondly, it seems that PyEphem forgot to provide an easy way to convert dates from Julian to its own julian_date() there is a julian_date() function that will move in a different direction, we will have to work a bit to go in another direction, finding out what it costs ephem .
Given these points, I think this script can answer your question:
import ephem az = 3.30084818
Does the answer he gives looks right for this particular observation? Here is what the script prints for me:
2011/9/17 16:48:00 (9:16:24.95, -0:45:56.8)
Let me know if this makes physical sense for this particular observation, or if one of the numbers here is incorrect and still needs to be tuned!
source share