Skip to content

A detection range by hand

One target, one radar, pencil and paper first and the program after. The point is to see where each decibel goes, and to see that the range at which a target is first detected is not the range where Pd reaches one half.

The case

An S-band search radar and a 0.5 m² target that flies straight at it at 250 m/s and 6 km altitude. Save this as worked_example.yaml:

scenario:
  name: "Worked example"
  duration_seconds: 400
  update_rate_hz: 20
radar:
  frequency_hz: 3.0e9
  power_watts: 200000
  prf_hz: 1000
  pulse_width_s: 1.0e-6
  system_losses_db: 4
  antenna: {gain_db: 35, beamwidth_az_deg: 1.5, beamwidth_el_deg: 4, scan_rate_rpm: 12}
  receiver: {noise_figure_db: 4, bandwidth_hz: 1.0e6}
  position: {x_m: 0, y_m: 0, z_m: 20}
targets:
  - name: "Inbound"
    rcs_m2: 0.5
    swerling_model: 1
    initial_position: {x_m: 0, y_m: 140000, z_m: 6000}
    velocity: {vx_mps: 0, vy_mps: -250, vz_mps: 0}
simulation:
  pulses_integrated: 16
  false_alarms: false

One pulse at 80 km

The wavelength is \(\lambda = c/f\) = 0.0999 m and the gain 35 dB = 3162. The radar equation gives the echo power

\[ P_r = \frac{P_t G^2 \lambda^2 \sigma}{(4\pi)^3 R^4} = \frac{2\cdot10^5 \times 3162^2 \times 0.0999^2 \times 0.5}{1984 \times (8\cdot10^4)^4} = 1.23\cdot10^{-13}\ \mathrm{W}. \]

The noise, with the antenna at 290 K, is \(kT_0FB\): a noise figure of 4 dB is a factor of 2.51, so

\[ N = 1.38\cdot10^{-23} \times 290 \times 2.51 \times 10^6 = 1.01\cdot10^{-14}\ \mathrm{W}, \]

and the ratio is 12.2, or 10.9 dB. Then the losses:

dB
\(P_r/N\) 10.87
system losses −4.00
beam shape −1.06
atmosphere, two ways −0.70
SNR of one pulse 5.11

The last two need a word.

Beam shape. The antenna turns at 12 rpm, 72°/s, so the 1.5° beam is on the target for 20.8 ms, which is 20.8 pulses. The processor integrates 16 of them, the middle 77 % of the beamwidth, and those pulses are not all at the peak of the beam. The mean two-way gain over that part of a Gaussian beam is −1.06 dB (the dwell).

Atmosphere. At 3 GHz the air at sea level absorbs 0.0075 dB/km one way. Over 80 km at sea level that would be 1.2 dB both ways. The path climbs to 6 km, where the air is thinner, and the loss integrated along it is 0.70 dB.

The dwell

With 5.1 dB a single pulse detects a Swerling 1 target with probability

\[ P_d = P_{fa}^{\,1/(1+S)} = (10^{-6})^{1/(1+3.24)} = 0.039 . \]

Sixteen pulses added after the detector are a different matter. The target's cross-section holds its value over the dwell and the noise does not, and the probability for the sum is 0.595. There is no short formula for it; the program evaluates the exact expression (calculate_pd_swerling), and the detection page says how.

So at 80 km this radar sees this target on six scans in ten.

What the program says

import numpy as np
from radarsim.io.scenario_loader import ScenarioLoader
from radarsim.simulation.analysis import coverage_curve, probe_engine

engine = ScenarioLoader("worked_example.yaml").create_simulation_engine()
probe = probe_engine(engine)

slant, height = 80e3, 6000.0 - 20.0
position = np.array([0.0, np.sqrt(slant**2 - height**2), 6000.0])
look = probe.evaluate_look(position, np.array([0.0, -250.0, 0.0]), 0.5,
                           engine.targets[0].swerling_model, target_id=1)
print(f"SNR {look.snr_db:.2f} dB, Pd {look.pd:.3f}")
print(f"beam shape {look.beam_shape_loss_db:.2f} dB, atmosphere {look.atmospheric_loss_db:.2f} dB")

curve = coverage_curve(probe, rcs_m2=0.5, swerling=1, altitude_m=6000, max_range_m=200e3)
print(f"Pd 0.5 at {curve.range_pd50_m / 1e3:.1f} km, Pd 0.9 at {curve.range_pd90_m / 1e3:.1f} km")
SNR 5.11 dB, Pd 0.595
beam shape 1.06 dB, atmosphere 0.70 dB
Pd 0.5 at 85.7 km, Pd 0.9 at 53.8 km

The same curve is in the Coverage tab of the interface.

When is it first seen?

Not at 86 km. The target comes in from 140 km, and the radar looks at it every 5 s, each time with a small chance of a detection. Those chances add up. If the scans are independent, the probability that at least one of them has detected by scan \(n\) is

\[ P_c(n) = 1 - \prod_{i=1}^{n} \big(1 - P_d(R_i)\big), \]

with the target 1.25 km closer on each scan. Taking \(P_d(R)\) from the curve above, \(P_c\) passes 0.1 at 132 km, 0.5 at 119 km and 0.9 at 105 km.

Now run it forty times with different seeds and note the range of the first detection each time:

firsts = []
for seed in range(1, 41):
    run = ScenarioLoader("worked_example.yaml").create_simulation_engine()
    run.seed = seed
    first = None
    while first is None and run.current_time < 400.0:
        for result in run.step():
            if result.is_detected:
                first = result.true_range_m / 1e3
                break
    firsts.append(first)
print(f"median {np.median(firsts):.0f} km, "
      f"10th to 90th percentile {np.percentile(firsts, 10):.0f} to {np.percentile(firsts, 90):.0f} km")
median 118 km, 10th to 90th percentile 107 to 133 km

The run agrees with the hand calculation, and both say that the target is first seen some 30 km beyond the range of 50 % detection per scan. A first detection is not a track, though: for a track the radar needs three detections on successive scans, and that waits until Pd per scan is well above one half. Run the scenario in the interface and watch the event log: first detected near 120 km, track confirmed a good deal later.

Things to try

  • Halve the scan rate. The dwell has twice the pulses, but the processor still integrates 16, so the single-scan Pd barely moves, and the scans are twice as far apart: the first detection comes later. Raise pulses_integrated to 32 as well and see what is gained.
  • Set swerling_model: 0. A steady target has the steeper curve: lower Pd far out, higher close in.
  • Put the target at 300 m instead of 6000 m. The horizon of a 20 m mast and a 300 m target is 90 km; nothing happens before that, whatever the SNR.
  • Set simulation.false_alarms: true (the default) and count the plots that are not the target.