Skip to content

PySNF 1.1.0

Choose a tag to compare

@cuttyusa66 cuttyusa66 released this 10 Nov 18:09
· 8 commits to trunk since this release
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.