Skip to content

Releases

PySNF v1.2.0

Choose a tag to compare

@cuttyusa66 cuttyusa66 released this 10 Nov 21:28
3d3431e

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_uniform and nearfield2farfield take normalization='gain' to return the absolute far-field pattern K instead of the dipole-probe signal (√6/4)·K.
    • field2wavecoeffs and nearfield2farfield take probe_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.md notes the effect of normalization='gain'.

Testing

  • python pysnf.py now 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.py runs 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.py remains usable on its own; pysnf_gt.py is optional and imports pysnf.

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

Choose a tag to compare

@cuttyusa66 cuttyusa66 released this 10 Nov 18:09
cef2c72

New

  • Latitude and MFC sampling grids. field2wavecoeffs and nearfield2farfield accept sampling='latitude' (sin θ weighting) or sampling='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_grid generates the sample locations for either grid; mfc_phi_counts and sin_theta_phi_counts give 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_uniform grid size. At some spacings (for example N = 168) it returned one theta ring and one phi sample too few.
  • lpmn_norm at 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

Choose a tag to compare

@cuttyusa66 cuttyusa66 released this 06 Nov 18:36
5fe796d

PySNF Version 1.0.1

Patch release. No functional changes to pysnf.py since 1.0.0.

What's new

  • MIT license. LICENSE added at the repository root, with an
    SPDX-License-Identifier: MIT header in pysnf.py and a License section
    in the README. The 1.0.0 release shipped without a license file.
  • Hansen cross-reference index. HANSEN_INDEX.md maps 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 to HANSEN_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.