📄 ze2inc.m
字号:
function[inc]=ze2inc(el,ro,R)%ZE2INC Converts beam zenith angle into incidence angle.%% INC=ZE2INC(ZE,RO) where RO is a satellite elevation above the surface% of the earth, and ZE is the beam zenith angle in degrees, returns % the beam incidence angle at the point at the surface of the Earth. %% The zenith angle is defined as the angle between the beam and the% nadir line. The Earth is approximated as a sphere of radius RADEARTH.%% INC=ZE2INC(ZE,RO,R) optionally uses a sphere of radius R in kilometers.%% See also ZEAZ2LATLON, LATLON2ZEAZ, ZE2DIST.%% 'ze2inc --f' generates a sample figure.%% Usage: inc=ze2inc(ze,ro);% inc=ze2inc(ze,ro,R);% __________________________________________________________________% This is part of JLAB --- type 'help jlab' for more information% (C) 2006 J.M. Lilly --- type 'help jlab_license' for details if strcmp(el, '--t') ze2inc_test,returnendif strcmp(el, '--f') ze2inc_fig,returnendif nargin==2 R=radearth;endif (~aresame(size(el),size(ro))) && (~isscalar(el) && ~isscalar(ro)) error('ZE and RO must be the same size, or one must be a scalar.')endif ~isscalar(R) error('R must be a scalar.')endc=2*pi/360;r1=ze2dist(el,ro,R); el=el*c;gamma=acos(frac(R^2+(ro+R).^2-r1.^2,2*R*(R+ro)));%gamma is angular distance spanned to look point from center of earthx=R*tan(gamma);%x is length of tangent line at look point to nadir lineindex=find(x<0);if ~isempty(index) x(index)=nan;end[rp,d]=quadform(1,-2*cos(el).*r1,r1.^2-x.^2);%d is distance from satellite to point where tangent line intersects nadir line%The larger root is the distance to a point inside the earthindex=find(d<0);if ~isempty(index) d(index)=nan;endtheta=acos(frac(x.^2+r1.^2-d.^2,2*x.*r1));%Theta is angle between tangent plane and look lineinc=pi/2-theta;inc=inc/c;function[]=ze2inc_test% 'ze2inc --t' runs a test.function[]=ze2inc_figfigurero=657;el=[0:0.5:90];inc=ze2inc(el,ro);plot(el,inc)xlabel('Zenith angle')ylabel('Incidence angle')title('Zenith and incidence angles for Aquarius satellite (ro=657 km)')
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -