def conv_equ2azel(ra, dec, geolon, geolat, utc): import Ganga as G import time import os jd = unix2jd(utc) gst = jd2gst(jd) lst = G.gst2lst(gst, geolon) az, el = G.equ2hor(ra, dec, geolat, lst) return az, el
def conv_azel2equ(az, el, geolon, geolat, utc): import Ganga as G import time import os jd = unix2jd(utc) gst = jd2gst(jd) #print gst.min(), gst.max() lst = G.gst2lst(gst, geolon) #print lst.min(), lst.max() ra, dec = G.hor2equ(az, el, geolat, lst) return ra, dec