lg2dg.m
来自「Geodetic tools to be used in navigation 」· M 代码 · 共 20 行
M
20 行
function [dlat,dlon]=lg2dg(dx,dy,lat,h,a,e2)% LG2DG Converts local geodetic coordinates to 恖at,恖on,恏.% Local origin at lat,lon. If astronomic lat,h input,% then output is in local astronomic system. Vectorized.% See also DG2LG.% Version: 18 Jan 96% Useage: [dlat,dlon]=lg2dg(dx,dy,lat,h,a,e2)% Input: dx - vector of x (N) coordinates in local system% dy - vector of y (E) coordinates in local system% lat - vector of lats of local system origins (rad)% h - vector of hts of local system origins% a - ref. ellipsoid major semi-axis% e2 - ref. ellipsoid eccentricity squared% Output: dlat - vector of latitude differences (rad)% dlon - vector of longitude differences (rad)v=a./sqrt(1-e2.*sin(lat).^2);r=v.*(1-e2)./(1-e2.*sin(lat).^2);dlat=dx./(r+h);dlon=dy./cos(lat)./(v+h);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?