<div dir="ltr"><div dir="ltr"><div dir="ltr">I am trying to see what is the closest point to an established latitude and longitude. I need to see the nearest point in latitude, longitude. First I convert the data to xy and then convert it back to lon-lat, but I can't refine the script since right now it returns 4 coordinates. How can I do better?</div><div dir="ltr"><br></div><div dir="ltr">begin<br><br></div><div dir="ltr">  a = addfile("/path/to/nc/<a href="http://file.nc">file.nc</a>","r")<br><br>  lat = 28.290147<br>  lon = -16.377643<br><br>  res = True<br>  res@returnInt = False ; return real values<br>  loc = wrf_user_ll_to_xy(a, lon, lat, res)<br>  print(loc)<br><br>  loc2 = wrf_user_xy_to_ll(a, loc, loc, res)<br>  print(loc2)<br><br>end<div><br></div>-- <br><div dir="ltr" class="gmail_signature">Borja Sas González</div></div></div></div>