⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 plh2xyzwgs.m

📁 In the planning stage of a GNSS-measurement campaign it is useful to compute several design para-met
💻 M
字号:
function xyz = plh2xyzwgs(plh)
%PLH2XYZWGS Ellipsoidal coordinates to Cartesian Coordinates 
%           Converts ellipsoidal coordinates Phi, Lambda and h into
%           cartesian coordinates X, Y and Z:
%
%           xyz = plh2xyzwgs(plh)
%
%        Ellips is WGS-84.

%        Based on plh2xyz.m written by
%        H. van der Marel, LGR, 07-05-95
%        (c) Geodetic Computing Centre, TU Delft


a=6378137.;
f=1/298.257223563;


% excentricity e (squared) 
e2 = 2*f - f^2;

[m,n]=size(plh);
if n~=3 & m==3, plh=plh';, end

N = a ./ sqrt(1 - e2 .* sin(plh(:,1)).^2);
xyz = [ (N+plh(:,3)).*cos(plh(:,1)).*cos(plh(:,2)) ...
        (N+plh(:,3)).*cos(plh(:,1)).*sin(plh(:,2)) ...
        (N-e2.*N+plh(:,3)).*sin(plh(:,1))          ];

if n~=3 & m==3, xyz=xyz';, end
    


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -