Skip to content

RadarSim v5.0.0

Latest

Choose a tag to compare

@github-actions github-actions released this 01 Dec 10:36
· 1 commit to main since this release

The detection chain is rebuilt around the dwell of a scanning radar, the tracker
knows how good each plot is, and the parts of the code that were never reachable
from a scenario (radar networks, SAR and ISAR, the extended Kalman filter, phase
codes) are either connected or gone. Results differ from 4.0 for most scenarios;
Migrating from 4.x lists the keys that give the old behaviour back.

Breaking changes

  • Python 3.10 to 3.13. Python 3.9 is no longer supported.
  • Noise power is k·Ts·B with Ts = Ta + T0·(F − 1). receiver.system_temperature_k
    is read as antenna_temperature_k; at 290 K the two agree.
  • A smooth-Earth horizon, range ambiguity, eclipsing, beam-shape loss and false
    alarms are on by default. The number of pulses integrated is limited to the
    hits the beam delivers, θ·PRF/ω.
  • simulation.mti.threshold_mps is ignored: the canceller has its real response,
    with blind speeds at multiples of λ·PRF/2.
  • Targets have the same RCS from every side unless the scenario gives
    rcs_aspect. The unsourced broadside weighting of 4.0 is gone.
  • The scenario f16_vs_sa6 is now escort_jamming and the objects of the
    built-in scenarios carry generic names. The old name still opens it.
  • Recordings are format 2 (HDF5 tables of what the displays were shown). Format 1
    files of 4.x still open; they can no longer be written.
  • h5py is an optional dependency: pip install "radarsim[recording]" (the
    gui extra includes it). Without it, recording and replay raise
    RecordingUnavailable with that advice; everything else works.
  • The jammer techniques "Chaff" and "Decoy" of the settings panel are removed.
    They produced random clouds and a scaled copy of the target without a model
    behind them. Chaff and decoys are objects of the scenario (ecm.chaff_clouds,
    ecm.decoys).
  • Removed from the library: radarsim.simulation.recorder, AdvancedSARISAR
    (now SarProcessor, rda_vectorized is range_doppler_focus), the omega-k
    and chirp-scaling stubs, RadarWaveforms and WaveformType (use
    pulse_samples, phase_code, matched_filter), DetectionMetrics,
    inject_into_cpi, every validate_* function and __main__ self-test,
    calculate_pd_vs_range, generate_roc_curves, calculate_max_range,
    SwerlingRCS.get_pdf and get_fluctuation_loss, TerrainMap.get_terrain_profile,
    ReplayLoader.get_snr_history and get_detection_stats, and
    radarsim.ui.main_window.APP_VERSION (use radarsim.__version__).
  • ExtendedKalmanFilter is the update on range and azimuth only
    (update(state, ground_range_m, azimuth_rad, range_sigma_m, azimuth_sigma_rad));
    its own prediction, SNR-adaptive noise and coasting logic are gone. The
    tracker predicts with the constant-velocity filter.

Detection

  • One dwell: hits per scan, beam-shape loss, the elevation pattern (stacked
    beams, a pencil beam or cosecant-squared), eclipsing and the minimum range,
    range ambiguity with an event when an echo is folded, and optional ambiguity
    resolution up to an instrumented range.
  • Horizon of the 4/3 Earth without terrain; gaseous absorption integrated along
    the slant path through the ITU-R P.835 reference atmosphere; optional two-ray
    multipath with Fresnel reflection, roughness and divergence.
  • MTI canceller of one or two delays with its velocity response and an optional
    staggered PRF. Clutter is weighted by the integration gain it does not get.
  • Non-coherent or binary (M-of-N) integration.
  • CFAR loss for the pulses of the dwell. Noise false alarms as Poisson plots over
    the cells the beam examined; optionally the false alarms of Weibull or
    K-distributed clutter.
  • Noise jamming summed over all jammers through main lobe and sidelobes, so a
    stand-off jammer screens other aircraft. False targets of a DRFM, chaff and
    decoys make plots and reach the tracker.
  • Azimuth pattern: Gaussian, uniform or Taylor n-bar.
  • RCS from an aspect profile, a table over frequency, or the exact conducting
    sphere.
  • Barker and Frank phase codes as radar.modulation, with their Doppler loss.
  • Swerling 3 and 4 detection probability from an exact series; small
    probabilities were up to 1 % off before.
  • Fixed: Pd overflow for masked targets with many pulses; engine.seed = n did
    nothing; detections made between two display frames were lost; clutter models
    outside their validity range raised inside step().

Tracking

  • A plot carries the covariance of its range and azimuth measurement, converted
    without bias. Accuracy follows the SNR and the bandwidth.
  • Filters: Kalman on converted measurements, extended Kalman on range and
    azimuth, or an interacting multiple model of constant velocity and coordinated
    turn (simulation.tracker.filter).
  • M-of-N confirmation, a track quality figure, height where the radar measures
    elevation, and probabilistic data association as an alternative to nearest
    neighbour (simulation.tracker.association).
  • OSPA distance and tracking-accuracy runs in radarsim.simulation.analysis.

Radar networks and imaging

  • radars: lists several radars on one scene. Each has its own receiver, noise
    and tracker; tracks are exchanged over a delayed link, paired and combined by
    covariance intersection, and noise jammers are located by crossing bearings.
  • Tools › Imaging: ISAR of the selected object from its real change of aspect,
    and stripmap SAR of a patch of ground.

Scenarios

  • Waypoint routes with a load factor for the turns (waypoints, load_factor_g).
  • New scenario radar_network.

Interface

  • PPI: wheel zoom about the cursor, drag to pan, range scale presets, a measuring
    line, cursor readout, labels that avoid each other, selectable tracks, a track
    table, false plots and other radars of a network.
  • Scenario editor: drag objects and velocity vectors, draw routes, undo and redo.
  • A-scope from the engine's range profile; B-scope, RHI and 3-D views with
    labels, selection and tracks; range-Doppler map from the radar's own waveform
    with clutter, jamming and false echoes.
  • Tracking accuracy panel (OSPA over repeated runs); events worded in the
    interface language; light theme; scope image export as PNG or SVG; session
    settings remembered.
  • Fixed: a stop requested before the simulation thread had started was lost and
    the thread ran on; number fields were blank under the style sheet; R restarted
    without asking; wheel changed settings while scrolling.

Documentation

  • Every page rewritten for this version. New pages: radar networks, imaging,
    a detection range worked by hand, output file formats, a Python reference
    made from the docstrings, what the program does not do, troubleshooting,
    citing.
  • The Python examples of the documentation are run by the test suite and the
    console output it quotes is compared with the program's.
  • A 78-second film on the first page, made from runs of the engine with a
    fixed seed, and the documentation typeset as a PDF manual attached to the
    release.

Tooling

  • radarsim --headless ... --record FILE.h5; reports and headless output cover
    radar networks.
  • Tests: closed forms for Pd, property-based tests, schema, reports, recordings;
    coverage of the core package is measured in CI with a floor of 85 %.
  • CI also tests the plain installation, without Qt and without h5py, and the
    source archive; it runs weekly as well as on every push.
  • Releases are uploaded to PyPI by trusted publishing, and the release files
    carry build provenance attestations. The documentation site follows main.

Migrating from 4.x

  1. To compare with 4.0 results, switch the new effects off one at a time:
    simulation.earth_curvature: false, simulation.false_alarms: false,
    radar.resolve_range_ambiguity: true, and give pulses_integrated: 1.
  2. Replace mti.threshold_mps by nothing; check the first blind speed
    λ·PRF/2 against your targets and add radar.prf_stagger if it matters.
  3. If a scenario relied on the broadside RCS weighting, add
    rcs_aspect: aircraft (or a table) to those targets.
  4. Rename receiver.system_temperature_k to antenna_temperature_k.
  5. Code that used AdvancedSARISAR, RadarWaveforms or the recorder: see the
    list under Breaking changes.