You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
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.