Repository navigation
Releases
Releases · cuttyusa66/PySNF
PySNF v1.2.0
Highlights
PySNF can now act as an ideal SNF-to-FF transform, one that adds no scaling of its own, and ships a companion module for G/T measurements.
New
- Gain normalization (opt-in).
wavecoeffs2farfield_uniformandnearfield2farfieldtakenormalization='gain'to return the absolute far-field pattern K instead of the dipole-probe signal (√6/4)·K.field2wavecoeffsandnearfield2farfieldtakeprobe_normalization='gain'to accept a gain-normalized probe pattern.- Both default to
'dipole', so existing scripts give the same results as in 1.1.0.
- G/T helpers (
pysnf_gt.py). A new companion module implementing the CW-Ambient technique:g_over_t: G/T of an active unit under test over the far-field sphere, from a complex receiver scan, the probe pattern, the power into the probe, the ambient and CW powers, and the noise bandwidth.near_zone_correction: the near-zone factor N_SNF that replaces (λd)² in the far-field G/T and Friis expressions.
Documentation
- New README sections: "Gain-normalized (ideal) transform" and "G/T measurements", each with a runnable example.
HANSEN_INDEX.mdnotes the effect ofnormalization='gain'.
Testing
python pysnf.pynow runs 27 checks (6 new), including the closed-form Hertzian-dipole case from the reference below, which must return exactly 1.76 dBi at any measurement distance.python pysnf_gt.pyruns 4 checks: closed-form dipole G/T, the full G/T pattern of the shipped WR-284 horn at kA = 100, the far-field limit of N_SNF, and input validation.
Compatibility
- No breaking changes. Default-keyword results are bit-for-bit identical to 1.1.0.
pysnf.pyremains usable on its own;pysnf_gt.pyis optional and importspysnf.
Notes
- The G/T self-tests are synthetic. They verify the scale factors, not the measurement assumptions of the CW-Ambient technique (UUT noise dominant, matched lines, stable ambient).
- For a y′-polarized probe the scan must follow PySNF's probe-roll convention; see the README. Nothing in the code checks this.
Reference
R. T. Cutshall, J. Dobbins and M. N. Barr, "Measuring G/T with a Spherical Near-Field Antenna Measurement System via the CW-Ambient Technique," 2020 Antenna Measurement Techniques Association Symposium (AMTA), Newport, RI, USA, 2020, pp. 1-6.
PySNF 1.1.0
New
- Latitude and MFC sampling grids.
field2wavecoeffsandnearfield2farfieldacceptsampling='latitude'(sin θ weighting) orsampling='mfc'(Maximum Fourier Content rule, Cutshall & Lawrence, AMTA 2015) in addition to the default'uniform'. A thinned scan is four flat arrays (theta,phi,E_theta,E_phi) in any order. sampling_gridgenerates the sample locations for either grid;mfc_phi_countsandsin_theta_phi_countsgive the per-ring counts.
Fixed
- Loss of accuracy above N ≈ 86. Results were silently wrong from N = 87 and meaningless from N = 89. The uniform round trip is now accurate to about 2e-13 at N = 180. Results below N = 86 are unchanged to rounding.
wavecoeffs2farfield_uniformgrid size. At some spacings (for example N = 168) it returned one theta ring and one phi sample too few.lpmn_normat the poles. Corrected the sign of the m = 0 value at θ = π for odd n, and replaced NaN in the |m| = 1 θ-derivative with Hansen's closed-form values. Neither was used by the transforms.- Spurious "invalid value encountered in divide" warning from
translation_coefficients; its output is unchanged.
Notes
- The sin θ grid is an inexact scheme (about −72 dB on the shipped horn, and it fails for a directive antenna pointed at the horizon). Prefer
'mfc'. - The self-test (
python pysnf.py) now runs 21 checks and needs about 1.6 GB of memory. - Requires SciPy ≥ 1.15, as before.
PySNF Version 1.0.1
PySNF Version 1.0.1
Patch release. No functional changes to pysnf.py since 1.0.0.
What's new
- MIT license.
LICENSEadded at the repository root, with an
SPDX-License-Identifier: MITheader inpysnf.pyand a License section
in the README. The 1.0.0 release shipped without a license file. - Hansen cross-reference index.
HANSEN_INDEX.mdmaps Hansen equation
numbers to the PySNF functions that implement them. - README fix. Removed links to companion chapter-summary files that were
never committed to the repository; they now point toHANSEN_INDEX.md. - Version strings bumped to 1.0.1.
Verification
python pysnf.py self-test: round-trip regression and single-mode purity
both PASS at 1e-10 tolerance.