How to find the nearby sampling stations

조회 수: 1 (최근 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