how to get horizontal coordinates a few mile from given coordinates?

4 ビュー (過去 30 日間)
hye wook Kim
hye wook Kim 2021 年 2 月 25 日
コメント済み: hye wook Kim 2021 年 3 月 1 日
hello! I'm trying to find the coordinates a few miles horizontally away from given coordinates.
It's like find (38, y) which is 5 nm right side of (38, 125).
I tried drawing 5nm radius circle from (38,125) with scircle1, but as the circle is comprised of
given points. It;s hard to get exact 38.
Is there any trick to find exact coordinates?
  3 件のコメント
Adam Danz
Adam Danz 2021 年 2 月 26 日
If you have the mapping toolbox you can convert nm to km using nm2km() and then convert km to miles using m=km*1.609344.
hye wook Kim
hye wook Kim 2021 年 2 月 27 日
As the figure shows, I tried to find the coordinates 5mile horizontaly(same latitude) away from [30, 124].
But with drawing circle method, it's hard to get exact same latitude as you can see 30.0004
+
I have no problem with converting mile between km, but thanks a lot!

サインインしてコメントする。

採用された回答

William Rose
William Rose 2021 年 2 月 26 日
I assume that 38,135 are the latitude and longitude of the center, and that you want the latitude and longitude for a point on a circle of radius 5 nm about that center. Let d=circle radius, R=Earth radius (same units as d), δ=d/R, ()=latitude, longitude of center, and ()=latitude, longitude of points on the circle. Then
If the distance d is small compared to the Earth radius R, then the following approximation (flat-Earth approximation) is quite accurate:
  2 件のコメント
William Rose
William Rose 2021 年 2 月 26 日
For a 5 n.mi. circle at 38 degrees latitude, the positions by flat Earth approximation differ from the true great circle by 2 meters or less, i.e. radial error is < (1/4500)*circle radius.
hye wook Kim
hye wook Kim 2021 年 3 月 1 日
sorry for unkindful explannation. 38, 135 are the lat and lon as you said:)
I'm trying what you've told! Thanks for help!

サインインしてコメントする。

その他の回答 (1 件)

William Rose
William Rose 2021 年 2 月 27 日
d=5 n.mi., R=earth radius=3440.1 n.mi, =30, =124, =30, δ=d/R.
So the code is
>> d=5; R=3440.1; lat0=30*pi/180; latc=30*pi/180; long0=124*pi/180;
>> longc=long0+sqrt((d/R)^2-(latc-lat0)^2)/cos(lat0);
>> longc=longc*180/pi; fprintf('%.7f\n',longc);
124.0961592
Which is the longitude on the 5 mile circle, at latc=30.00000 degrees.
  1 件のコメント
hye wook Kim
hye wook Kim 2021 年 3 月 1 日
As I tried with the code you wrote. It gave me the coordiation with 0.0002 mile error with distance measure function 'haversine'.
But this is the error that I can deal with. Thank you for help:)

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGeodesy and Mapping についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by