Decimal Degrees to metres

7 ビュー (過去 30 日間)
Tadgh Cullen
Tadgh Cullen 2015 年 7 月 7 日
コメント済み: Sedevizo Kielienyu 2020 年 7 月 10 日
I received a data set and the x and y data given is in decimal degrees and this is causing a huge error in a vorticity calculation I later use. I need the x and y data to be in metres and therefore I believe the best way to deal with this is to convert to UTM. Does anyone know how to do this?
The data set I have is X=255*302 structure & Y=255*302 structure. Would really appreciate some advice, haven't dealt with anything like this before.

採用された回答

bio lim
bio lim 2015 年 7 月 7 日
Hi. There are mercator.m files available on the File Exchange.
Generally, it should look something like this.
radian = degree * pi/180; % Since your x (lng) and y (lat) are given in decimal degrees.
earth_radius = 6378.137;
lng = (x * radian - 135/180*pi) * earth_radius; %[km]
lat = atanh(sin(y)) * earth_radius; %[km]
Since you have a structures, it is better to write function mercator that your data can easily be implemented.
  1 件のコメント
Sedevizo Kielienyu
Sedevizo Kielienyu 2020 年 7 月 10 日
what is the value of degree? this is unclear

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMapping Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by