def detect(
    az_mesh, 
    range_mesh, 
    snr, 
    thresh: float
    ):
    """
    Constant threshold detection.
    
    Inputs:
    - az_mesh [ArrayLike]: Mesh of azimuth points (deg)
    - range_mesh [ArrayLike]: Mesh of range points (m)
    - snr [ArrayLike]: Signal-to-noise ratio values
    - thresh [float]: Detection threshold
    
    Outputs:
    - az_det [ArrayLike]: Azimuth values of detections (deg)
    - range_det [ArrayLike]: Range values of detections (m)
    """

    det_ix = (snr >= thresh)
    return az_mesh[det_ix], range_mesh[det_ix]