processing_library/util/coordinate_support.py
def azel_to_hadec(az, el, latitude):
    """Converting Az El to HA Dec
    
    TMS Appendix 4.1
    
    sindec = sinlat sinel + coslat cosel cosaz
    cosdec cosha = coslat sinel - sinlat cosel cosaz
    cosdec sinha = -cosel sinaz
    
    :param az:
    :param el:
    :param latitude:
    :return: ha, dec
    """
    cosel = numpy.cos(el)
    sinel = numpy.sin(el)
    coslat = numpy.cos(latitude)
    sinlat = numpy.sin(latitude)
    cosaz = numpy.cos(az)
    sinaz = numpy.sin(az)

    ha = numpy.arctan2(-cosel * sinaz, coslat * sinel - sinlat * cosel * cosaz)
    dec = numpy.arcsin(sinlat * sinel + coslat * cosel * cosaz)
    return ha, dec
Converting Az El to HA Dec
    
    TMS Appendix 4.1
    
    sindec = sinlat sinel + coslat cosel cosaz
    cosdec cosha = coslat sinel - sinlat cosel cosaz
    cosdec sinha = -cosel sinaz
    
    :param az:
    :param el:
    :param latitude:
    :return: ha, dec
    
Converting Az El to HA Dec
TMS Appendix 4.1

sindec = sinlat sinel + coslat cosel cosaz
cosdec cosha = coslat sinel - sinlat cosel cosaz
cosdec sinha = -cosel sinaz
Converting Az El to HA Dec TMS Appendix 4 . 1 sindec = sinlat sinel + coslat cosel cosaz cosdec cosha = coslat sinel - sinlat cosel cosaz cosdec sinha = - cosel sinaz
def azel_to_hadec(az, el, latitude):
    cosel = numpy.cos(el)
    sinel = numpy.sin(el)
    coslat = numpy.cos(latitude)
    sinlat = numpy.sin(latitude)
    cosaz = numpy.cos(az)
    sinaz = numpy.sin(az)
    ha = numpy.arctan2(-cosel * sinaz, coslat * sinel - sinlat * cosel * cosaz)
    dec = numpy.arcsin(sinlat * sinel + coslat * cosel * cosaz)
    return ha, dec
def azel_to_hadec ( az , el , latitude ) : cosel = numpy . cos ( el ) sinel = numpy . sin ( el ) coslat = numpy . cos ( latitude ) sinlat = numpy . sin ( latitude ) cosaz = numpy . cos ( az ) sinaz = numpy . sin ( az ) ha = numpy . arctan2 ( - cosel * sinaz , coslat * sinel - sinlat * cosel * cosaz ) dec = numpy . arcsin ( sinlat * sinel + coslat * cosel * cosaz ) return ha , dec
Converting Az El to HA Dec
TMS Appendix 4.1
Converting Az El to HA Dec TMS Appendix 4 . 1
"""Converting Az El to HA Dec
    
    TMS Appendix 4.1
    
    sindec = sinlat sinel + coslat cosel cosaz
    cosdec cosha = coslat sinel - sinlat cosel cosaz
    cosdec sinha = -cosel sinaz
    
    :param az:
    :param el:
    :param latitude:
    :return: ha, dec
    """
None
az
None
el
None
latitude
None