Python Companion to Emitter Detection and Geolocation for Electronic Warfare
This repository is a port of the MATLAB software companion to Emitter Detection and Geolocation for Electronic Warfare, by Nicholas A. O'Donoughue, Artech House, 2019.
This repository contains the Python code, released under the MIT License, and when it is complete, it will generate all the figures and implements all the algorithms and many of the performance calculations within the texts Emitter Detection and Geolocation for Electronic Warfare, by Nicholas A. O'Donoughue, Artech House, 2019 and Practical Geolocation for Electronic Warfare using MATLAB, by Nicholas A. O'Donoughue, Artech House, 2022.
The textbooks can be purchased from Artech House directly at the following links: Emitter Detection and Geolocation for Electronic Warfare, and Practical Geolocation for Electronic Warfare using MATLAB Both are also available from Amazon.
Installation
PyPI Install (recommended)
Use pip to install the package from the PyPI repository
pip install ewgeo
All the tools will be installed and available by importing the ewgeo package.
import ewgeo
Local Install
After cloning or downloading the git repository, you can install it locally in any virtual environment.
If the path to your downloaded copy of the repository is <PATH_TO_EWGEO>, then issue the following commands in a terminal window.
cd <PATH_TO_EWGEO>
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install -e .
This repository has been tested with Python 3.12 and 3.13. We recommend using a
virtual environment for package/dependency handling (the virtual environment
does not need to be named .venv, however).
Dependencies
This repository is dependent on the following packages, and was written with Python 3.12.
- matplotlib
- numpy
- scipy
- seaborn
Figures
The make_figures/ folder contains the code to generate all the figures in the textbook. The subfolder make_figures/practical_geo generates figures for the second textbook.
To generate all figures, run the file make_figures.py. To run figures for an individual chapter, use a command such as the following:
import make_figures
chap1_figs = make_figures.chapter1.make_all_figures()
Examples
The examples/ folder contains the code to execute each of the examples in the textbook. The subfolder examples/practical_geo has examples from the second textbook.
Utilities
A number of utilities are provided in this repository, under the following modules:
- ewgeo.aoa Code to execute angle-of-arrival estimation, as discussed in Chapter 7
- ewgeo.array_df Code to execute array-based direction-finding and angle-of-arrival estimation, as discussed in Chapter 8
- ewgeo.atm Code to model atmospheric loss, as discussed in Appendix C
- ewgeo.detector Code to model detection performance, as discussed in Chapter 3-4
- ewgeo.fdoa Code to execute Frequency Difference of Arrival (FDOA) geolocation processing, as discussed in Chapter 12.
- ewgeo.hybrid Code to execute hybrid geolocation processing, as discussed in Chapter 13.
- ewgeo.noise Code to model noise power, as discussed in Appendix D.
- ewgeo.prop Code to model propagation losses, as discussed in Appendix B.
- ewgeo.tdoa Code to execute Time Difference of Arrival (TDOA) geolocation processing, as discussed in Chapter 11.
- ewgeo.triang Code to model triangulation from multiple AOA measurements, as discussed in Chapter 10.
- ewgeo.tracker Code to track emitter position over time using a Kalman filter, as discussed in Chapter 9.
- ewgeo.utils Generic utilities, including numerical solvers used in geolocation algorithms.
Optional SNR-based Covariance Matrix Support
New in v1.2 is the option to automatically adjust the covariance matrix of a PSS, based on the position of a source. This was implemented to supplement the default behavior of a single fixed covariance matrix in CRLB calculations, which fails to account for reductions in signal strength at long range.
There is a new utility method, ewgeo.utils.snr.compute_snr_per_sensor() that will accept a number of arguments and return the SNR for each sensor in a PSS.
This function is called internally; users may access it directly, or they can create a PSS object with SNR parameters, which will prompt that object to update its covariance matrix dynamically.
pss = TDOAPassiveSurveillanceSystem(
x_sensor, cov,
has_snr_cov=True,
erp_dbw=...,
mds_dbw=...,
freq_hz=..., # activates SNR mode
coord_system='enu',
enu_ref_lla=(lat, lon, alt))
The necessary parameters are:
erp_dbw: Effective Radiated Power [dBW] for the source. Inclusive of all transmitter gain and loss terms.mds_dbw: Minimum detectable signal for the PSS receivers. Must be scalar. At this power level, signals will have SNR=0 dB. Inclusive of all noise, gain, and loss terms.freq_hz: Center frequency of the source [Hz]bandwidth_hz: (TDOA and FDOA) Signal bandwidth [Hz]pulse_len_s: (TDOA and FDOA) Signal pulse length [s]bandwidth_rms_hz: (TDOA-only) Signal Root-Mean-Square bandwidth [Hz]t_rms_s: (FDOA-only) Signal Root-Mean-Square pulse length [Hz]aperture_m: (AOA-only) interferometer baseline length [m]coord_system: Coordinate system in use for the PSS; must be either ECEF or ENU. Used to determine atmospheric loss (optional).enu_ref_lla: LLA reference point for the local ENU coordinate system; used to determine atmospheric loss (optional). If only some of the SNR parameters are provided at creation, the rest will need to be provided when eithercompute_cov,compute_crlb, orcompute_snrare called.
snr_overrides = dict(...)
pss.compute_cov(x_source, **snr_overrides)
Feedback
Please submit any suggestions, bugs, or comments as issues in this git repository.
Metadata
Release files for ewgeo 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ewgeo-1.2.0.tar.gz | 250.7 kB | With provenance | Details for ewgeo-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ewgeo-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for ewgeo-1.2.0-py3-none-any.whl |
Total release size: 443.1 kB
Release files / ewgeo-1.2.0.tar.gz
| Download URL | ewgeo-1.2.0.tar.gz |
|---|---|
| Size | 250.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d633098b94e4c23d329f5771d9794635f16074e8a7b4527ab3dcd8d1ab57021a
|
|
BLAKE2b-256 checksum How to use checksums |
c0c568d4c4b97c948a516bfda1df00ae1cb4d0d4c675de6faab9ffcd97f1f856
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / ewgeo-1.2.0-py3-none-any.whl
| Download URL | ewgeo-1.2.0-py3-none-any.whl |
|---|---|
| Size | 192.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
caca59f1fdda743dd5f4089eb80f44141cf956be44511e79ec8f7be0c32d1284
|
|
BLAKE2b-256 checksum How to use checksums |
265c742524446cfab00b3ec43d38b0a1bf4645cb0765dc3f9e920db50141b733
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logSecurity for ewgeo 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ewgeo-1.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.