main content

modeling the propagation of radar signals -凯发k8网页登录

this example shows how to model several rf propagation effects. these include free space path loss, atmospheric attenuation due to rain, fog and gas, and multipath propagation due to bounces on the ground. the discussion in this example is based on the itu-r p series recommendations of the international telecommunication union. itu-r is the radio communication section and the p series focuses on radio wave propagation.

introduction

to properly evaluate the performance of radar and wireless communication systems, it is critical to understand the propagation environment. the received signal power of a monostatic radar is given by the radar range equation:

$$ p_r = \frac{p_tg^2\sigma\lambda^2}{(4\pi)^3r^4l}$$

where $p_t$ is the transmitted power, $g$ is the antenna gain, $\sigma$ is the target radar cross section (rcs), $\lambda$ is the wavelength, and $r$ is the propagation distance. all propagation losses other than free space path loss are included in the $l$ term. the rest of the example shows how to estimate this $l$ term in different scenarios.

free space path loss

free space path loss is computed as a function of propagation distance and frequency. in free space, rf signals propagate at the speed of light in all directions. at a far enough distance, the radiating source looks like a point in space and the wavefront forms a sphere whose radius is equal to $r$. the power density at the wavefront is inversely proportional to $r^2$:

$$ \frac{p_t}{4\pi r^2} $$

where $p_t$ is the transmitted signal power. for a monostatic radar where the signal has to travel both directions (from the source to the target and back), the dependency is actually inversely proportional to $r^4$, as shown previously in the radar equation. the loss related to this propagation mechanism is referred to as free space path loss, sometimes also called the spreading loss. quantitatively, free space path loss is also a function of frequency, given by [5]:

$$l_{fs} = 20*\log_{10}(\frac{4\pi r}{\lambda}) \quad db$$

as a convention, propagation losses are often expressed in db. this convention makes it much easier to derive the two-way free space path loss by simply doubling the one-way free space loss.

use the fspl function to calculate the free-space path loss, and plot the loss for frequencies between 1 and 1000 ghz, for different ranges.

c = physconst('lightspeed');
r0 = [100 1e3 10e3];
freq = (1:1000).'*1e9;
apathloss = fspl(r0,c./freq);
loglog(freq/1e9,apathloss);
grid on;
ylim([90 200]);
legend('range: 100 m', 'range: 1 km', 'range: 10 km','location','northwest');
xlabel('frequency (ghz)');
ylabel('path loss (db)');
title('free space path loss');

the figure shows that the propagation loss increases with range and frequency.

propagation loss due to precipitation and atmosphere

in reality, signals do not always travel in a vacuum, so free space path loss describes only part of the signal attenuation. signals interact with particles in the air and lose energy along the propagation path. the loss varies with different factors such as pressure, temperature, and water density.

loss due to rain and snow

rain can be a major limiting factor for radar systems, especially when operating above 5 ghz. in the itu model in [2], rain is characterized by the rain rate (in mm/h). according to [6], the rain rate can range from less than 0.25 mm/h for very light rain to over 50 mm/h for extreme rains. in addition, because of the rain drop's shape and its relative size compared to the rf signal wavelength, the propagation loss due to rain is also a function of signal polarization. in general, horizontal polarization represents the worst case for propagation loss due to rain.

the functions rainpl and cranerainpl can be used to compute losses due to rain according to the itu and crane models, respectively. both models are valid between 1 ghz and 1 thz. let the polarization be horizontal, so the tilt angle is 0, and let the signal propagate parallel to the ground, so the elevation angle is 0. plot losses computed with both models and compare.

r0 = 5e3;                % 5 km range
rainrate = [1 4 20];     % rain rate in mm/h
el = 0;                  % 0 degree elevation
tau = 0;                 % horizontal polarization
for m = 1:numel(rainrate)
    rainloss_itu(:,m) = rainpl(r0,freq,rainrate(m),el,tau)';
    rainloss_crane(:,m) = cranerainpl(r0,freq,rainrate(m),el,tau)';
end
loglog(freq/1e9,rainloss_itu);
hold on;
set(gca,'colororderindex',1); % reset color index for better comparison
loglog(freq/1e9,rainloss_crane,'--');
hold off;
grid on;
legend('light rain (itu)','moderate rain (itu)','heavy rain (itu)',...
    'light rain (crane)','moderate rain (crane)','heavy rain (crane)', ...
    'location','southeast');
xlabel('frequency (ghz)');
ylabel('attenuation at 5 km (db)')
title('rain attenuation for horizontal polarization');

the losses computed with the crane model are mostly larger than the losses computed with the itu model at this propagation range. at smaller propagation ranges and lower frequencies, the itu model may output a smaller attenuation value than crane. note that the models differ greatly enough that at higher frequencies, light rainfall for one model may have the same attenuation as moderate rainfall for the other model.

similar to rainfall, snow can also have a significant impact on the propagation of rf signals. a common practice is to treat snow as rainfall and compute the propagation loss based on the rain model, even though this approach tends to overestimate the loss a bit. attenuation due to propagation through snow is not considered dependent on polarization, but is highly dependent on frequency. the model for losses due to snow is parameterized by the equivalent liquid content instead of volume. for a given water content, snow requires about 10 times as much volume as rain.

use the snowpl function to compute losses due to snow, and plot the losses against frequency. by default, this function uses the gunn-east attenuation model, which is generally valid up to about 20 ghz.

freq = (1:20)*1e9;
r0 = 1e3;               % 1 km range
snowrate = [0.1 1.5 4]; % equivalent liquid water content in mm/h
for m = 1:numel(snowrate)
    snowloss(:,m) = snowpl(r0,freq,snowrate(m));
end
loglog(freq/1e9,snowloss);
grid on;
legend('light snow','moderate snow','heavy snow', ...
    'location','southeast');
xlabel('frequency (ghz)');
ylabel('attenuation at 1 km (db)')
title('snow attenuation');

loss due to fog and cloud

fog and cloud are formed with water droplets too, although much smaller compared to rain drops. the size of fog droplets is generally less than 0.01 cm. fog is often characterized by the liquid water density. a medium fog with a visibility of roughly 300 meters, has a liquid water density of 0.05 g/m^3. for heavy fog where the visibility drops to 50 meters, the liquid water density is about 0.5 g/m^3. the atmosphere temperature (in celsius) is also present in the itu model for propagation loss due to fog and cloud [3].

use the fogpl function to compute losses due to fog, and plot the losses against frequency. the itu model for attenuation due to fog is valid between 10 ghz and 1 thz.

freq = (10:1000)*1e9;
t = 15;                         % 15 degree celsius
waterdensity = [0.01 0.05 0.5]; % liquid water density in g/m^3
for m = 1: numel(waterdensity)
    fogloss(:,m) = fogpl(r0,freq,t,waterdensity(m))';
end
loglog(freq/1e9,fogloss);
grid on;
legend('light fog','medium fog','heavy fog','location','southeast');
xlabel('frequency (ghz)');
ylabel('attenuation at 1 km (db)')
title('fog attenuation');

note that in general fog is not present when it is raining.

loss due to atmospheric absorption and lensing

even when there is no fog or rain, the atmosphere is full of gases that still affect the signal propagation. the itu model [4] describes atmospheric gas attenuation as a function of both dry air pressure, like oxygen, measured in hpa, and water vapour density, measured in g/m^3.

use the tropopl function to compute losses due to atmospheric absorption, and plot the losses against frequency. by default, this function uses the mean annual global reference atmosphere (magra) model to get typical values of temperature, pressure, and water vapor density for a given altitude. we can also specify a latitude model to use a model tailored for a specific range of latitudes. some latitude models also allow for specification of a season. let our altitude be 2 km (note that the troposphere, for which this model is valid, extends up to 10 km) and our propagation path be depressed by 5 degrees. this function returns the total loss due to atmospheric absorption over the slanted propagation path, but does not include dissipation due to refraction (lensing). compare losses between the low, mid, and high latitude models.

height = 2e3;
el = -5; % elevation angle
atmloss_low = tropopl(r0,freq,height,el,'latitudemodel','low');
atmloss_mid = tropopl(r0,freq,height,el,'latitudemodel','mid');
atmloss_high = tropopl(r0,freq,height,el,'latitudemodel','high');
loglog(freq/1e9,atmloss_low);
hold on;
loglog(freq/1e9,atmloss_mid);
loglog(freq/1e9,atmloss_high);
hold off;
grid on;
legend('low latitudes','mid latitudes','high latitudes','location','northwest');
xlabel('frequency (ghz)');
ylabel('attenuation at 1 km (db)')
title('atmospheric gas attenuation');

the plot suggests that there is a strong absorption due to atmospheric gases at around 60 ghz.

another source of losses due to atmosphere is from atmospheric lensing. this is a phenomenon whereby the angular extent of a transmission is increased with range due to a refractivity gradient. this spreading of energy decreases the energy density along the nominal (straight) propagation path, independent of frequency.

atmospheric pressure, and thus refractivity, changes with altitude. so for a given height, the elevation angle of the propagation path is enough to determine losses due to this effect.

use the lenspl function to compute these losses and plot against frequency. because this loss is independent of frequency, plot the loss against propagation range for a set of heights. use an elevation angle of 0.05 degrees for a slanted propagation path.

r = 1e3:1e3:100e3;      % propagation range
el = 0.05;              % elevation angle
heights = [10 100 200]; % radar platform heights
for m = 1:numel(heights)
    lenloss(:,m) = lenspl(r,heights(m),el);
end
semilogy(r/1e3,lenloss);
grid on;
legend('height: 10 m','height: 100 m','height: 200 m','location',...
    'southeast');
xlabel('propagation range (km)');
ylabel('attenuation (db)')
title('atmospheric lensing attenuation');

attenuation due to lensing decreases as altitude increases. for convenience, attenuation due to lensing is also provided as a secondary output from tropopl.

loss due to polarization mismatch

some types of propagation loss are dependent on the polarization of the transmitted radiation, such as with rain loss. this is a result of the chemical and structural properties of the medium. however, even in free space there may be losses due to a mismatch of the propagated polarization vector and the polarization of the receiving antenna. for example, if the propagated polarization vector is orthogonal to the polarization of the receiving antenna, almost no direct signal energy would be received. note that the propagated polarization vector is not in general the same as the transmitted polarization vector, as the direction of propagation must be taken into account. note also that the other loss functions which take polarization as an input do not compute losses due to this mismatch. polarization-dependent losses due to properties of the propagation medium can be handled separately from losses due to polarization mismatch, as the latter is heavily dependent on the transmitter/receiver orientation.

use the polloss function to compute the loss due to polarization mismatch for a given transmit/receive polarization, platform positions, and platform orientations. place the transmit platform at the origin with no rotation from inertial. place the receive platform along the x axis and compute polarization loss for a range of roll angles. let the antenna polarizations both be vertical.

poltx = [0;1];  % [h;v] polarization
polrx = [0;1];
postx = [0;0;0];
posrx = [100;0;0];
frmtx = eye(3); % transmit frame aligned with inertial
rolls = 0:180;
for m = 1:numel(rolls)
    frm_r = rotx(rolls(m));
    rho(m) = polloss(poltx,polrx,posrx,frm_r,postx,frmtx);
end
semilogy(rolls,rho);
grid on;
xlabel('roll angle (deg)');
ylabel('attenuation (db)');
title('attenuation due to polarization mismatch');

the attenuation approaches infinity at a 90 degree roll angle.

radar propagation factor and vertical coverage diagram

when transmitting over a wide angle or from an antenna close to the ground, multipath from ground bounce, along with refraction from atmosphere, yields a radiation pattern at a given range that can be quite different from the nominal transmit pattern. this is captured by the radar propagation factor, which is the ratio of the actual field strength relative to what the field strength would be in free space. the propagation factor can vary greatly as the relative phase between the direct and indirect path signals changes.

a vertical coverage diagram (blake chart) is a compact way of displaying contours of fixed signal energy (such as a minimum signal power for detection) as a function of propagation range and elevation angle. only the vertical plane in which both the direct and indirect path signals propagate is considered.

the function radarvcd takes a reference range as input and returns the range at which the received power in the multipath environment equals what it would be in free space. this effective range is plotted on a range-height-angle chart. this can quickly give, for example, the actual detection range given a free-space detection range, as a function of range, height, or elevation angle.

use a free-space detection range of 100 km, transmit frequencies in l-band and c-band, and an antenna height of 12 m. a sinc transmit pattern is used by default.

freq = [1.06 5.7]*1e9; % l-band and c-band transmit frequencies (hz)
antht = 12;            % height of antenna (m)
rngfs = 100;           % free-space detection range (km)
for m = 1:numel(freq)
    [vcp{m}, vcpang{m}] = radarvcd(freq(m),rngfs,antht);
end

blakechart takes these detection ranges and angles, along with additional atmospheric properties to create the blake chart. use the refractiveidx function to compute the corresponding refraction exponent for input to blakechart.

[~,n] = refractiveidx(0); % atmospheric refractivity at the surface
helperplotblakechart(vcp,vcpang,n)

ground-bounce interference dominates the propagation factor for shorter ranges, in the so-called interference region, but at longer ranges and low elevation angles the propagation factor is dominated by diffraction over the horizon, the diffraction region. use the radarpropfactor function to compute the propagation factor for an interval of ranges and observe the difference between these two regions.

compute the propagation factor for a fixed height above the surface of 1 km and propagation ranges between 50 and 200 km. set the surface slope and height standard deviation to 0 to represent a smooth surface. perform the analysis for the two frequency bands.

tgtht = 1e3;           % target height (m)
r = (50:200)*1e3;      % propagation range (m)
re = effearthradius;   % effective earth radius (m)
rd = sqrt(2*re)*(sqrt(antht)   sqrt(tgtht)); % diffraction range
f = zeros(numel(freq),numel(r));
for m = 1:numel(freq)
    f(m,:) = radarpropfactor(r,freq(m),antht,tgtht,'surfaceheightstandarddeviation',0,'surfaceslope',0);
end
helperplotpropagationfactor(r,f,rd)

the propagation factor oscillates in the interference region, then decreases quickly in the diffraction region.

combine the ground-bounce interference and atmospheric absorption losses. assume in this calculation that a 3.3 ghz s-band surface ship radar is 20 m above the water and has an elevation beamwidth of 30 deg.

freq = 3.3e9;                   % frequency (hz)
elbw = 30;                      % elevation beamwidth (deg)
rkm = 1:0.1:120;                % range (km)
r = rkm.*1e3;                   % range (m)
[htsd,beta0] = searoughness(1); % sea surface
anht = 20   2*htsd;             % radar height (m)
tgtht = (anht 1):1:300;         % target height (m)
% calculate combined environment losses for different heights and ranges
[pldb, pldbnorm] = helpercombineenvlosses(r,freq,anht,tgtht,htsd,beta0,elbw);
% plot combined losses for different heights and ranges
helperplotcombinedenvlosses(rkm,freq,anht,tgtht,pldbnorm)

multipath propagation, time delays, and doppler shifts

signals may not always propagate along the line of sight, but arrive at the destination via different paths and may add up either constructively or destructively. this multipath effect can cause significant fluctuations in the received signal power.

the functions mentioned in the previous sections for computing propagation losses are useful to establish budget links, but to simulate the propagation of arbitrary signals, you also need to apply range-dependent time delays, gains, and phase shifts. various channel objects are available to model multipath propagation. for a simple line-of-sight path, use the phased.loschannel object to model the propagation subject to any of the loss types described previously.

ground reflection is a common phenomenon for many radar or wireless communication systems. for example, when a ground-based or sea-based radar illuminates a target, the signal not only propagates along the direct line of sight but is also reflected from the ground. use the tworaychannel object to model the combination of a direct path and single-bounce path, such as for ground reflection.

time delays and doppler shifts

first, define the transmitted signal. use a rectangular waveform.

waveform = phased.rectangularwaveform('prf',250);
wav = waveform();

assume an l-band operating frequency of 1.9 ghz. model the channel.

fc = 1.9e9;
channel = tworaychannel('propagationspeed',c,'operatingfrequency',fc);

assume the target unit is 1.65 km above the ground, the radar antenna is 12 meters above the ground at a 50 km distance. simulate the signal as it reaches the target.

pos_radar = [0;0;12];
pos_target = [50e3;0;1.65e3];
vel_radar = [0;0;0];
vel_target = [-200;0;0];
y2ray = channel(wav,pos_radar,pos_target,vel_radar,vel_target);

visualize the transmitted and propagated pulses and their normalized spectra. the channel introduced a delay of 167 $\mu s$ which corresponds to the 50 km range of the target divided by the speed of light.

[delay, dop] = helperplotdelayanddopplershift(wav,y2ray,waveform.samplerate);

estrange = delay*c*1e-3 % km
estrange =
   49.9954

the channel also applied a doppler shift that corresponds to the range rate of the target. compare the estimated value to the -200 m/s ground truth using the dop2speed and freq2wavelen functions.

estrangerate = -dop2speed(dop,freq2wavelen(fc)) % m/s
estrangerate =
 -201.9038

multipath fading

calculate the signal loss suffered in this channel.

l_2ray = pow2db(bandpower(wav))-pow2db(bandpower(y2ray))
l_2ray =
  151.5888

calculate the free-space path loss.

l_ref = fspl(norm(pos_target-pos_radar),c/fc)
l_ref =
  132.0069

the result suggests that in this configuration, the channel introduces an extra 19.6 db loss to the received signal compared to the free space case. now assume the target flies a bit higher at 1.8 km above the ground. repeating the simulation above suggests that this time the ground reflection actually provides a 6 db gain. although free space path loss is essentially the same in the two scenarios, a 150 m move caused a 25.6 db fluctuation in signal power.

pos_target = [50e3;0;1.8e3];
y2ray  = channel(wav,pos_radar,pos_target,vel_radar,vel_target);
l_2ray = pow2db(bandpower(wav))-pow2db(bandpower(y2ray))
l_ref  = fspl(norm(pos_target-pos_radar),c/fc)
l_2ray =
  126.0374
l_ref =
  132.0078

increasing the bandwidth of a system increases the capacity of its channel. this enables higher data rates in communication systems and finer range resolutions for radar systems. the increased bandwidth can also improve robustness to multipath fading for both systems.

typically, wideband systems operate with a bandwidth of greater than 5% of their center frequency. in contrast, narrowband systems operate with a bandwidth of 1% or less of the center frequency.

the narrowband channel in the preceding section was shown to be very sensitive to multipath fading. slight changes in the target's height resulted in considerable signal losses.

plot the fading loss for the channel by varying the height of the target across a span of operational heights for this radar system. choose a span of heights from 1 km to 3 km.

% simulate the signal fading at the target for heights from 1 km to 3 km
htarget = linspace(1e3,3e3);
pos_target = repmat([50e3;0;1.6e3],[1 numel(htarget)]);
pos_target(3,:) = htarget;
vel_target = repmat(vel_target,[1 numel(htarget)]);
release(channel);
y2ray = channel(repmat(wav,[1 numel(htarget)]),pos_radar,pos_target,vel_radar,vel_target);

plot the signal loss observed at the target.

l2ray = pow2db(bandpower(wav))-pow2db(bandpower(y2ray));
clf;
plot(htarget,l2ray);
xlabel('target height (m)');
ylabel('one-way propagation loss (db)');
title('multipath fading observed at the target');
grid on;

the sensitivity of the channel loss to target height for this narrowband system is clear. deep signal fades occur at heights that are likely to be within the surveillance area of the radar.

increasing the bandwidth of the channel can improve robustness to these multipath fades. to do this, use a wideband waveform with a bandwidth of 8% of the center frequency of the link.

bw = 0.08*fc;
pulse_width = 1/bw;
fs = 2*bw;
waveform = phased.rectangularwaveform('samplerate',fs,'prf',2000,'pulsewidth',pulse_width);
wav = waveform();

use a wideband version of this channel model, widebandtworaychannel, to simulate multipath reflections of this wideband signal off of the ground between the radar and the target, and to compute the corresponding channel loss.

channel = widebandtworaychannel('propagationspeed',c,'operatingfrequency',fc,'samplerate',fs);

simulate the signal at the target for various operational heights.

y2ray_wb = channel(repmat(wav,[1 numel(htarget)]),pos_radar,pos_target,vel_radar,vel_target);
l2ray_wb = pow2db(bandpower(wav))-pow2db(bandpower(y2ray_wb));
hold on;
plot(htarget,l2ray_wb);
hold off;
legend('narrowband','wideband');

as expected, the wideband channel provides much better performance across a wide range of heights for the target. in fact, as the height of the target increases, the impact of multipath fading almost completely disappears. this is because the difference in propagation delay between the direct and bounce path signals is increasing, reducing the amount of coherence between the two signals when received at the target.

conclusion

this example provides an overview of rf propagation losses due to atmospheric and weather effects. it also introduces multipath signal fluctuations due to ground bounces. it highlights functions and objects to simulate attenuation losses for narrowband and wideband single-bounce channels.

references

[1] seybold, john s. introduction to rf propagation:
seybold/introduction to rf propagation. hoboken, nj, usa: john wiley &
sons, inc., 2005. https://doi.org/10.1002/0471743690
[2] recommendation itu-r p.838-3, 2005
[3] recommendation itu-r p.840-3, 2013
[4] recommendation itu-r p.676-10, 2013
[5] recommendation itu-r p.525-2, 1994
[6] rain, a water resource (pamphlet), u.s. geological survey, 1988

supporting functions

helperplotpropagationfactor

function helperplotpropagationfactor(r,f,rd)
% plot interference and diffraction region patches
[minf, maxf] = bounds(f(:));
maxf = ceil((maxf 10)/10)*10;
minf = floor((minf-10)/10)*10;
ypatch = [minf minf maxf maxf];
c1 = [0.3010 0.7450 0.9330];
c2 = [0 0.4470 0.7410];
clf % clear current figure
fill([r(1) rd rd r(1)]/1e3,ypatch,c1,'edgecolor','none','facealpha',0.25)
hold on
fill([rd r(end) r(end) rd]/1e3,ypatch,c2,'edgecolor','none','facealpha',0.25)
% plot one-way propagation factor
set(gca,'colororderindex',1); % reset color index
plot(r/1e3,f);
ylim([minf maxf])
grid on;
xlabel('range (km)');
ylabel('propagation factor (db)');
title('one-way propagation factor at 1 km above surface');
legend('interference region', 'diffraction region',...
    'l-band (1.06 ghz)', 'c-band (5.7 ghz)',...
    'location','southwest')
hold off
end

helperplotblakechart

function helperplotblakechart(vcp,vcpang,n)
% calculate refraction exponent
deln = -7.32*exp(0.005577*n);
rexp = log(n./(n   deln));
subplot(211)
blakechart(vcp{1},vcpang{1},'surfacerefractivity',n,'refractionexponent',rexp);
legend('l-band (1.06 ghz)')
xlabel('')
title ('blake chart - antenna height: 12 m')
subplot(212)
blakechart(vcp{2},vcpang{2},'surfacerefractivity',n,'refractionexponent',rexp);
allc = get(gca,'children');
set(allc(11),'color',[0.8500 0.3250 0.0980]) % change line color
title('')
legend('c-band (5.7 ghz)')
end

helperplotdelayanddopplershift

function [delay, dop] = helperplotdelayanddopplershift(wav,y2ray,fs)
% plot transmitted and propagated pulse
t = 1e6*(0:numel(wav)-1)'/fs;
subplot(211)
yyaxis left
plot(t,abs(wav))
ylabel('magnitude')
yyaxis right
plot(t,abs(y2ray))
grid on
axis padded
xlim([0 300])
xlabel(['time (' char(0x00b5) 's)'])
ylabel('magnitude')
title('transmitted and propagated pulse')
% annotation
delay = midcross(abs(y2ray),t/1e6,'midpercentreferencelevel',80); % seconds
delay = delay(1);
xl = xline(1e6*delay,'-.',... % annotation
    {[num2str(round(1e6*delay)),' ',char(0x00b5) 's delay']},'color',[0.8500 0.3250 0.0980]);
xl.labelverticalalignment = 'middle';
xl.labelhorizontalalignment = 'left';
xl.linewidth = 2;
% plot power spectrum
subplot(212)
[p,f] = pspectrum([wav y2ray],fs,'frequencylimits',[-20e3 20e3]);
p = abs(p);
plot(1e-3*f,rescale(p,'inputmin',min(p),'inputmax',max(p)));
axis padded
grid on
[~,idx]=max(p);
dop = f(idx(2))-f(idx(1));   % hz
xlabel('frequency (khz)')
ylabel('magnitude')
title('normalized spectrum')
xl = xline(1e-3*dop,'-.',... % annotation
    {'doppler shift',[num2str(round(dop)*1e-3) ' khz']},'color',[0.8500 0.3250 0.0980]);
xl.labelverticalalignment = 'bottom';
xl.linewidth = 2;
legend('transmitted','propagated')
end

helpercombineenvlosses

function [pldb, pldbnorm] = helpercombineenvlosses(r,freq,anht,tgtht,htsd,beta0,elbw)
% calculate the combined environment losses
numht = numel(tgtht);
numr = numel(r);
f = zeros(numht,numr);
for ih = 1:numht
    f(ih,:) = radarpropfactor(r, freq, anht, tgtht(ih),...
    'surfaceheightstandarddeviation',htsd,'surfaceslope',beta0,...
    'elevationbeamwidth', elbw);
end
% free space spreading loss
lspl_db = 2*fspl(r,freq2wavelen(freq));  % factor of 2 for two-way
% perform tropospheric losses calculation for a subset of elevation angles,
% since the ray refracting can take a long time.
numel = 10;
minel = height2el(tgtht(1),anht,r(end)); % min elevation angle (deg)
maxel = height2el(tgtht(end),anht,r(1)); % max elevation angle (deg)
elsubset = linspace(minel,maxel,numel);
ltroposubset = zeros(numel,numr);
for ie = 1:numel
    ltroposubset(ie,:) = tropopl(r,freq,anht,elsubset(ie));
end
% interpolate tropospheric losses for all elevation angles of interest
ltropo = zeros(numht,numr);
for ir = 1:numr
    el = height2el(tgtht,anht,r(ir));
    ltropo(:,ir) = interp1(elsubset,ltroposubset(:,ir),el);
end
pldb = 2*f - lspl_db - ltropo;           % factor of 2 for two-way
pldbnorm = pldb - max(pldb(:));
end

helperplotcombinedenvlosses

function helperplotcombinedenvlosses(rkm,freq,anht,tgtht,pldbnorm)
% plot combined losses for different heights and ranges
hp = pcolor(rkm,tgtht,pldbnorm);
set(hp, 'edgecolor', 'none');
title([num2str(freq/1e9) ' ghz s-band radar'])
subtitle([num2str(round(anht)) ' m above water'])
xlabel('range (km)')
ylabel('height (m)')
colormap('jet');
caxis([-150 0])
hc = colorbar;
hc.label.string = 'normalized two-way propagation loss (db)';
end
网站地图