How to find the nearby sampling stations

2 次查看(过去 30 天)
Leon
Leon 2021-4-11
评论: dpb 2021-4-16
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 个评论
Leon
Leon 2021-4-12
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 2021-4-12
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.

请先登录,再进行评论。

回答(1 个)

Shadaab Siddiqie
Shadaab Siddiqie 2021-4-16
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 个评论
dpb
dpb 2021-4-16
Neither of which address that OP's coordinates are in lat, long, not x,y,z...

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Geodesy and Mapping 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by