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

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