def angle_to_azimuth_scalar(angle):
    """
    Helper function for angle_to_azimuth, for scalar inputs.

    Takes an angle (in unit circle coordinates) and returns an azimuth
    (in compass direction coordinates).
    """
    az = - (angle - 90)
    
    while az < 0:
        az += 360
    while az > 360:
        az -= 360
    
    return az