How to find the nearby sampling stations

1 visualización (últimos 30 días)
Leon
Leon el 11 de Abr. de 2021
Comentada: dpb el 16 de Abr. de 2021
I have millions of samping sations, my goal is to find the nearby stations with a certain distance threshold. What is the best way to do it based on the longitude and latitude information?
It seems that calculating the stations between each of them is extremely time-consuming.
Thanks.
  6 comentarios
Leon
Leon el 12 de Abr. de 2021
Many thank for the recommendations.
It would be great if Mathworks could develop a function to allow me to easily find nearby sations with a specific radius (considering the land mask as well).
dpb
dpb el 12 de Abr. de 2021
I would presume there are tools in the Mapping Toolbox (which I don't have) similar to pdist2 in base product, but I really don't know much at all about what is available.

Iniciar sesión para comentar.

Respuestas (1)

Shadaab Siddiqie
Shadaab Siddiqie el 16 de Abr. de 2021
From my understanding you want to speed up the process of finding the nearest location. You can use pdist2 to find pair-wise distance of all the point in a range or you can also use dsearchn to find nearest point.
  1 comentario
dpb
dpb el 16 de Abr. de 2021
Neither of which address that OP's coordinates are in lat, long, not x,y,z...

Iniciar sesión para comentar.

Categorías

Más información sobre Geodesy and Mapping en Help Center y File Exchange.

Productos


Versión

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by