pyrad.util.find_ray_index#
- pyrad.util.find_ray_index(ele_vec, azi_vec, ele, azi, ele_tol=0.0, azi_tol=0.0, nearest='azi')[source]#
Find the ray index corresponding to a particular elevation and azimuth
- Parameters:
ele_vec, azi_vec (float arrays) – The elevation and azimuth data arrays where to look for
ele, azi (floats) – The elevation and azimuth to search
ele_tol, azi_tol (floats) – Tolerances [deg]
nearest (str) – criteria to define wich ray to keep if multiple rays are within tolerance. azi: nearest azimuth, ele: nearest elevation
- Returns:
ind_ray (int) – The ray index